Skip to content

Add coverage for positional arguments with multiple binaries#20

Merged
joetannenbaum merged 2 commits into
laravel:2.xfrom
lazerg:fix/issue-15-multi-bin-positional-arg
Jul 1, 2026
Merged

Add coverage for positional arguments with multiple binaries#20
joetannenbaum merged 2 commits into
laravel:2.xfrom
lazerg:fix/issue-15-multi-bin-positional-arg

Conversation

@lazerg

@lazerg lazerg commented Jun 30, 2026

Copy link
Copy Markdown

This is already fixed on 2.x, but I couldn't find any tests covering it so I added one here.

The bug is still present on v1 (the currently released version): there ?? null === $possibleCommand gets parsed wrong because of operator precedence, so the first positional argument is dropped. I opened a separate fix for that against the v1 branch: #21

Related to #15

@lazerg lazerg closed this Jun 30, 2026
@lazerg lazerg reopened this Jun 30, 2026
@lazerg

lazerg commented Jul 1, 2026

Copy link
Copy Markdown
Author

@joetannenbaum this adds test coverage for #15 on 2.x — let me know if you'd like anything changed.

@joetannenbaum

Copy link
Copy Markdown
Collaborator

Thank you!

@joetannenbaum joetannenbaum merged commit 6a807f5 into laravel:2.x Jul 1, 2026
3 checks passed
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.

2 participants