We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5de463e commit 0c18029Copy full SHA for 0c18029
src/Illuminate/Console/Application.php
@@ -262,7 +262,7 @@ protected function addToParent(SymfonyCommand $command)
262
/**
263
* Add a command, resolving through the application.
264
*
265
- * @param string $command
+ * @param \Illuminate\Console\Command|string $command
266
* @return \Symfony\Component\Console\Command\Command|null
267
*/
268
public function resolve($command)
@@ -273,6 +273,10 @@ public function resolve($command)
273
return null;
274
}
275
276
+ if ($command instanceof Command) {
277
+ return $this->add($command);
278
+ }
279
+
280
return $this->add($this->laravel->make($command));
281
282
0 commit comments