From 9f76956afbcab3abbecd9d6da078808cfbf38ca6 Mon Sep 17 00:00:00 2001 From: Valodia Date: Thu, 9 Feb 2023 14:42:54 +0400 Subject: [PATCH] Update afterPromptingForMissingArguments method --- src/Illuminate/Foundation/Console/ListenerMakeCommand.php | 2 +- src/Illuminate/Foundation/Console/ModelMakeCommand.php | 2 +- src/Illuminate/Foundation/Console/ObserverMakeCommand.php | 2 +- src/Illuminate/Foundation/Console/PolicyMakeCommand.php | 2 +- src/Illuminate/Foundation/Console/TestMakeCommand.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Illuminate/Foundation/Console/ListenerMakeCommand.php b/src/Illuminate/Foundation/Console/ListenerMakeCommand.php index 94d0b668dceb..62e82ccd1ea6 100644 --- a/src/Illuminate/Foundation/Console/ListenerMakeCommand.php +++ b/src/Illuminate/Foundation/Console/ListenerMakeCommand.php @@ -137,7 +137,7 @@ protected function getOptions() */ protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output) { - if ($this->didReceiveOptions($input)) { + if ($this->isReservedName($this->getNameInput()) || $this->didReceiveOptions($input)) { return; } diff --git a/src/Illuminate/Foundation/Console/ModelMakeCommand.php b/src/Illuminate/Foundation/Console/ModelMakeCommand.php index 3bec9f772130..dbc32855e279 100644 --- a/src/Illuminate/Foundation/Console/ModelMakeCommand.php +++ b/src/Illuminate/Foundation/Console/ModelMakeCommand.php @@ -245,7 +245,7 @@ protected function getOptions() */ protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output) { - if ($this->didReceiveOptions($input)) { + if ($this->isReservedName($this->getNameInput()) || $this->didReceiveOptions($input)) { return; } diff --git a/src/Illuminate/Foundation/Console/ObserverMakeCommand.php b/src/Illuminate/Foundation/Console/ObserverMakeCommand.php index 6d53265bf013..039cb4e27646 100644 --- a/src/Illuminate/Foundation/Console/ObserverMakeCommand.php +++ b/src/Illuminate/Foundation/Console/ObserverMakeCommand.php @@ -162,7 +162,7 @@ protected function getOptions() */ protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output) { - if ($this->didReceiveOptions($input)) { + if ($this->isReservedName($this->getNameInput()) || $this->didReceiveOptions($input)) { return; } diff --git a/src/Illuminate/Foundation/Console/PolicyMakeCommand.php b/src/Illuminate/Foundation/Console/PolicyMakeCommand.php index 92bb68f8800f..7bc95b0e38eb 100644 --- a/src/Illuminate/Foundation/Console/PolicyMakeCommand.php +++ b/src/Illuminate/Foundation/Console/PolicyMakeCommand.php @@ -221,7 +221,7 @@ protected function getOptions() */ protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output) { - if ($this->didReceiveOptions($input)) { + if ($this->isReservedName($this->getNameInput()) || $this->didReceiveOptions($input)) { return; } diff --git a/src/Illuminate/Foundation/Console/TestMakeCommand.php b/src/Illuminate/Foundation/Console/TestMakeCommand.php index 5ddccb33ba1e..f3dd30a07309 100644 --- a/src/Illuminate/Foundation/Console/TestMakeCommand.php +++ b/src/Illuminate/Foundation/Console/TestMakeCommand.php @@ -132,7 +132,7 @@ protected function getOptions() */ protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output) { - if ($this->didReceiveOptions($input)) { + if ($this->isReservedName($this->getNameInput()) || $this->didReceiveOptions($input)) { return; }