Skip to content

Commit 63627b2

Browse files
committed
CS
1 parent ee4e5b3 commit 63627b2

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/CommandDefinition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

src/CommandRouter.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)