-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in vendor/laravel/framework/src/Illuminate/Log/LogManager.php on line 637 #54626
Comments
Have you tried :
Other than that try setting your env If it still happens, can you get it to occur in a fresh project? If so upload it, as it may be easier to figure it out :) |
It doesn't help :( And it happened only in one laravel service after Shift update :( the rest of the services have the same, and the rest are ok. |
fixed with run
then |
I guess there was a depreciation that tried to log during the update, and your env was cached so it was set to null rather than a string, as you cant trim on null, but you can on a string. (Or perhaps a previous version was cached?) Using the cache and config clear means any env settings are no longer cached so I'm assuming that's what happened |
Hey there, thanks for reporting this issue. We'll need more info and/or code to debug this further. Can you please create a repository with the command below, commit the code that reproduces the issue as one separate commit on the main/master branch and share the repository here? Please make sure that you have the latest version of the Laravel installer in order to run this command. Please also make sure you have both Git & the GitHub CLI tool properly set up.
Do not amend and create a separate commit with your custom changes. After you've posted the repository, we'll try to reproduce the issue. Thanks! |
Hey there, We're closing this issue because it's inactive, already solved, old, or not relevant anymore. Feel free to open up a new issue if you're still experiencing this problem. |
Laravel Version
11.42.1
PHP Version
8.3
Database Driver & Version
Mysql
Description
I get this error on composer dump-autoload or composer update:
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in vendor/laravel/framework/src/Illuminate/Log/LogManager.php on line 637
In LoadConfiguration.php line 99:
array_merge(): Argument #2 must be of type array, int given
even I have this as a logging.php config file:
and this in env file:
Can you help me?
Steps To Reproduce
composer update
during process:
@php artisan package:discover --ansi
The text was updated successfully, but these errors were encountered: