Skip to content

Conversation

@LastDragon-ru
Copy link
Contributor

The Illuminate\Console\Parser::parameters() actually returns array{InputArgument[],InputOption[]}

protected static function parameters(array $tokens)
{
$arguments = [];
$options = [];
foreach ($tokens as $token) {
if (preg_match('/^-{2,}(.*)/', $token, $matches)) {
$options[] = static::parseOption($matches[1]);
} else {
$arguments[] = static::parseArgument($token);
}
}
return [$arguments, $options];
}

Related to #58565; @shaedrich

@taylorotwell taylorotwell merged commit bcaa68a into laravel:12.x Feb 7, 2026
72 checks passed
@shaedrich
Copy link
Contributor

Good catch! Thanks for fixing 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants