Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lang::get should gracefully handle non-existing keys #1205

Closed
syphernl opened this issue May 6, 2013 · 6 comments
Closed

Lang::get should gracefully handle non-existing keys #1205

syphernl opened this issue May 6, 2013 · 6 comments

Comments

@syphernl
Copy link

syphernl commented May 6, 2013

If a key does not exist, it should not fail with:

Call to undefined method Illuminate\Support\Collection::sortBy() 

but instead show the key.

@taylorotwell
Copy link
Member

It does show the key. To me it looks like you aren't up to date and maybe need to regenerate the compiled file for your installation.

@syphernl
Copy link
Author

syphernl commented May 6, 2013

I am up-to-date, removing compiled.php has no effect and someone else had the same issue and mentioned it on the forum..

Taylor Otwell notifications@github.comschreef:

It does show the key. To me it looks like you aren't up to date and maybe need to regenerate the compiled file for your installation.


Reply to this email directly or view it on GitHub.

@taylorotwell
Copy link
Member

It's literally impossible that you are up to date if you are getting a
function not found error for that function.

@barryvdh
Copy link
Contributor

barryvdh commented May 6, 2013

I also came across this error, but could not really reproduce it with a clean install. I suspect it could have had something to do with composer loading the support class from one of my workbench classes, but I'm not sure.

@syphernl
Copy link
Author

syphernl commented May 7, 2013

I removed all workbench/*/vendor/illuminate files and re-ran the composer installer and updater for all and that seems to have done the trick indeed. A bit of a limitation of the workbenches :(

@taylorotwell
Copy link
Member

Not really, just composer update your workbenches.

gonzalom pushed a commit to Hydrane/tmp-laravel-framework that referenced this issue Oct 12, 2023
laravel.WARNING: trim(): Passing null to parameter laravel#1 ($string) of type string is deprecated in /srv/api/vendor/laravel/lumen-framework/src/Routing/Router.php on line 151
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants