Skip to content

Suppress NamedArgumentNotAllowed in the scenarios calling PHPUnit with named arguments - #287

Merged
danog merged 1 commit into
masterfrom
named-arguments-not-allowed
Nov 19, 2026
Merged

danog merged 1 commit into
masterfrom
named-arguments-not-allowed

Conversation

@danog

@danog danog commented Nov 19, 2026

Copy link
Copy Markdown
Member

PHPUnit marks its classes @no-named-arguments, which Psalm master applies since vimeo/psalm#12389, so the scenarios calling PHPUnit with named arguments now get NamedArgumentNotAllowed. They test how the plugin resolves those arguments, so they suppress it.

The high-deps jobs also need vimeo/psalm#14213, which stops Psalm from matching disallowed named arguments by position (the ArgumentTypeCoercion/UndefinedClass errors on the attribute scenarios).

…h named arguments

PHPUnit marks its classes @no-named-arguments, which Psalm applies since vimeo/psalm#12389. These scenarios test how the plugin resolves the named arguments, so they suppress the issue the call now gets.
@danog danog added the release:internal The PR will be included in 'Internal changes' section of the release notes label Nov 19, 2026
@danog
danog merged commit 6678789 into master Nov 19, 2026
14 of 16 checks passed
@danog
danog deleted the named-arguments-not-allowed branch November 19, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:internal The PR will be included in 'Internal changes' section of the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant