Skip to content

Conversation

@cosmastech
Copy link
Contributor

@cosmastech cosmastech commented Jan 15, 2025

To resolve #54190

Passing null to explode() produces a deprecation warning. I coalesced the option to a blank string, and modified the tests so the tests will fail if there's a deprecation warning.

@github-actions
Copy link

Thanks for submitting a PR!

Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@cosmastech cosmastech marked this pull request as ready for review January 15, 2025 01:57
$this->components->info('Clearing cached bootstrap files.');

$exceptions = Collection::wrap(explode(',', $this->option('except')))
$exceptions = Collection::wrap(explode(',', $this->option('except') ?? ''))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there the need, to call all these at all if $this->option('except') is null? Maybe let's just wrap that in an if statement

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see #54214

@taylorotwell taylorotwell merged commit 5107066 into laravel:11.x Jan 15, 2025
38 checks passed
@cosmastech cosmastech deleted the patch-4 branch January 15, 2025 22:05
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

Successfully merging this pull request may close these issues.

Deprecation on optimize commands

3 participants