Skip to content

Commit

Permalink
[10.x] Fix ListenerMakeCommand deprecations (#47517)
Browse files Browse the repository at this point in the history
* [10.x] fix ListenerMakeCommand depreciations

* chore: update
  • Loading branch information
dammy001 authored Jun 21, 2023
1 parent 44ecf73 commit 27975ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Console/ListenerMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class ListenerMakeCommand extends GeneratorCommand
*/
protected function buildClass($name)
{
$event = $this->option('event');
$event = $this->option('event') ?? '';

if (! Str::startsWith($event, [
$this->laravel->getNamespace(),
Expand Down

0 comments on commit 27975ba

Please sign in to comment.