From 27975ba5e5bd7b88ac12ddf7d185b0f93e86a652 Mon Sep 17 00:00:00 2001 From: Anjorin Damilare Date: Wed, 21 Jun 2023 23:58:16 +0100 Subject: [PATCH] [10.x] Fix `ListenerMakeCommand` deprecations (#47517) * [10.x] fix ListenerMakeCommand depreciations * chore: update --- src/Illuminate/Foundation/Console/ListenerMakeCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/Console/ListenerMakeCommand.php b/src/Illuminate/Foundation/Console/ListenerMakeCommand.php index 6d815bbd7d31..6e549fd6d042 100644 --- a/src/Illuminate/Foundation/Console/ListenerMakeCommand.php +++ b/src/Illuminate/Foundation/Console/ListenerMakeCommand.php @@ -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(),