Skip to content

Add named argument tests for @pure-unless-callable-is-impure#6022

Merged
ondrejmirtes merged 1 commit into
phpstan:2.2.xfrom
zonuexe:feature/pure-unless-callable-named-arg-tests
Jul 8, 2026
Merged

Add named argument tests for @pure-unless-callable-is-impure#6022
ondrejmirtes merged 1 commit into
phpstan:2.2.xfrom
zonuexe:feature/pure-unless-callable-named-arg-tests

Conversation

@zonuexe

@zonuexe zonuexe commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #3482. As @staabm noted in #6018 (comment), the @pure-unless-callable-is-impure PR handled named arguments in code but shipped without a test for them. This adds one.

Test-only, no source changes. Covers the callable passed by name, in shuffled argument order, and on a method call.

@ondrejmirtes ondrejmirtes merged commit 5ac0f96 into phpstan:2.2.x Jul 8, 2026
388 of 389 checks passed
@zonuexe zonuexe deleted the feature/pure-unless-callable-named-arg-tests branch July 8, 2026 10:09
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