Skip to content

[12.x] Fix missing InputArgument::IS_ARRAY in getArguments PHPDoc#58771

Merged
taylorotwell merged 1 commit intolaravel:12.xfrom
kayw-geek:fix/phpdoc-get-arguments
Feb 12, 2026
Merged

[12.x] Fix missing InputArgument::IS_ARRAY in getArguments PHPDoc#58771
taylorotwell merged 1 commit intolaravel:12.xfrom
kayw-geek:fix/phpdoc-get-arguments

Conversation

@kayw-geek
Copy link
Contributor

This PR adds the missing InputArgument::IS_ARRAY constant to the @return PHPDoc of getArguments() in HasParameters and GeneratorCommand.

Caused by #58565 (0f197fe).

@kayw-geek kayw-geek changed the title Fix missing InputArgument::IS_ARRAY in getArguments PHPDoc [12.x] Fix missing InputArgument::IS_ARRAY in getArguments PHPDoc Feb 12, 2026
@taylorotwell taylorotwell merged commit a54e546 into laravel:12.x Feb 12, 2026
72 checks passed
* @return (InputArgument|array{
* 0: non-empty-string,
* 1?: InputArgument::REQUIRED|InputArgument::OPTIONAL,
* 1?: InputArgument::REQUIRED|InputArgument::OPTIONAL|InputArgument::IS_ARRAY,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should actually be int-mask-of<InputArgument::REQUIRED|InputArgument::OPTIONAL|InputArgument::IS_ARRAY>. As-is it's not possible to specify required array arguments.

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