Skip to content

PHP 8.4 deprecation in optimize:clear command #54232

@rcerljenko

Description

@rcerljenko

Laravel Version

11.38.2

PHP Version

8.3.15

Database Driver & Version

No response

Description

Calling php artisan optimize:clear without any arguments logs this to the logger:

explode(): Passing null to parameter #2 ($string) of type string is deprecated in /.../vendor/laravel/framework/src/Illuminate/Foundation/Console/OptimizeClearCommand.php on line 37

I suspect this has something to do with the latest PR on that matter => #54070

Steps To Reproduce

Just run php artisan optimize:clear without any other arguments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions