File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed
Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class CommandDefinition
3131
3232 /**
3333 * @param string $name The name of the command (this is how the student would invoke the command from the cli)
34- * @param string[]|CommandArgument[] $args A list of required arguments. This must be an array of strings or `CommandArgument`'s.
34+ * @param string[]|CommandArgument[] $args A list of arguments. Must be an array of strings or `CommandArgument`'s.
3535 * @param string|callable $commandCallable The name of a callable container entry or an actual PHP callable.
3636 */
3737 public function __construct ($ name , array $ args , $ commandCallable )
Original file line number Diff line number Diff line change @@ -110,15 +110,8 @@ public function route(array $args = null)
110110 }
111111 $ command = $ this ->commands [$ commandName ];
112112
113- $ definitionArgs = $ command ->getRequiredArgs ();
114113 $ this ->checkRequiredArgs ($ commandName , $ command ->getRequiredArgs (), $ args );
115114
116- // if (count($args) !== count($command->getRequiredArgs())) {
117- // $receivedArgs = count($args);
118- // $missingArgs = array_slice($command->getRequiredArgs(), $receivedArgs);
119- // throw new MissingArgumentException($commandName, $missingArgs);
120- // }
121-
122115 return $ this ->resolveCallable ($ command , array_merge ([$ appName ], $ args ));
123116 }
124117
You can’t perform that action at this time.
0 commit comments