Skip to content

Skip named and unpack arguments when autofixing - #343

Merged
staabm merged 3 commits into
phpstan:2.1.xfrom
staabm:skip-named
Oct 6, 2026
Merged

staabm merged 3 commits into
phpstan:2.1.xfrom
staabm:skip-named

Conversation

@staabm

@staabm staabm commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

as we found out in #342 and #343 we missed handling for named/unpack args.

PHPUnit does not support named arguments for assert*.

see https://github.com/sebastianbergmann/phpunit/blob/bfa72f3d37a2fcb76ec57c87728f3623db06c035/src/Framework/Assert.php#L72-L74

splat operator is rather rare, so lets skip them for now

@staabm
staabm merged commit ac3237e into phpstan:2.1.x Oct 6, 2026
97 checks passed
@staabm
staabm deleted the skip-named branch October 6, 2026 08:18
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