Skip to content

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

Closed
@stojankukrika

Description

@stojankukrika

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:

<?php

return [

    'default' => env('LOG_CHANNEL', 'stack'),

    'deprecations' => env('LOG_DEPRECATIONS_CHANNEL', 'null'),

    'channels' => [
        'bugsnag' => [
            'driver' => 'bugsnag',
        ],

        'daily' => [
            'driver' => 'daily',
            'path' => storage_path('logs/'.php_sapi_name().'/laravel.log'),
            'level' => env('LOG_LEVEL', 'debug'),
            'days' => 90,
            'permissions' => 0664,
        ],
    ],

];

and this in env file:

LOG_CHANNEL=stack
LOG_STACK=daily
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

Can you help me?

Steps To Reproduce

composer update
during process:

@php artisan package:discover --ansi

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions