Skip to content

Commit e4358d1

Browse files
xurshudyanValodia
andauthored
Update afterPromptingForMissingArguments method (#46052)
Co-authored-by: Valodia <[email protected]>
1 parent e063e5d commit e4358d1

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/Illuminate/Foundation/Console/ListenerMakeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ protected function getOptions()
137137
*/
138138
protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output)
139139
{
140-
if ($this->didReceiveOptions($input)) {
140+
if ($this->isReservedName($this->getNameInput()) || $this->didReceiveOptions($input)) {
141141
return;
142142
}
143143

src/Illuminate/Foundation/Console/ModelMakeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ protected function getOptions()
245245
*/
246246
protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output)
247247
{
248-
if ($this->didReceiveOptions($input)) {
248+
if ($this->isReservedName($this->getNameInput()) || $this->didReceiveOptions($input)) {
249249
return;
250250
}
251251

src/Illuminate/Foundation/Console/ObserverMakeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ protected function getOptions()
162162
*/
163163
protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output)
164164
{
165-
if ($this->didReceiveOptions($input)) {
165+
if ($this->isReservedName($this->getNameInput()) || $this->didReceiveOptions($input)) {
166166
return;
167167
}
168168

src/Illuminate/Foundation/Console/PolicyMakeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ protected function getOptions()
221221
*/
222222
protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output)
223223
{
224-
if ($this->didReceiveOptions($input)) {
224+
if ($this->isReservedName($this->getNameInput()) || $this->didReceiveOptions($input)) {
225225
return;
226226
}
227227

src/Illuminate/Foundation/Console/TestMakeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ protected function getOptions()
132132
*/
133133
protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output)
134134
{
135-
if ($this->didReceiveOptions($input)) {
135+
if ($this->isReservedName($this->getNameInput()) || $this->didReceiveOptions($input)) {
136136
return;
137137
}
138138

0 commit comments

Comments
 (0)