-
Notifications
You must be signed in to change notification settings - Fork 599
Implement @pure-unless-parameter-passed #6018
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
staabm
merged 29 commits into
phpstan:2.3.x
from
zonuexe:feature/pure-unless-parameter-passed
Oct 3, 2026
+2,827
−987
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
60db01a
Parse @pure-unless-parameter-passed PHPDoc tag
zonuexe fdfad4f
Thread @pure-unless-parameter-passed through the reflection layer
zonuexe dd12523
Wire @pure-unless-parameter-passed into the analyser
zonuexe 5328327
Mark by-ref out-parameter builtins as @pure-unless-parameter-passed
zonuexe dd88f4c
Add tests for @pure-unless-parameter-passed
zonuexe cd70c61
Cover the pre-PHP 8 parameter names for the by-ref out-parameter buil…
zonuexe d391af6
Honor @pure-unless-parameter-passed on constructor calls, unpacked an…
zonuexe 64671b7
Parse @pure-unless-parameter-passed via phpdoc-parser 2.3.3
zonuexe ebbb858
Report certain impurity when a @pure-unless-parameter-passed argument…
zonuexe cb58bf7
Recognize @phpstan-pure-unless-callable-is-impure as a known tag
zonuexe 99df900
Report @pure-unless-parameter-passed on a non-optional parameter
zonuexe f6f1f41
Expose @pure-unless-parameter-passed parameters as a function-level map
zonuexe 2c8b6cb
Test @pure-unless-parameter-passed with a variadic parameter
zonuexe 4ff7998
Mark preg_filter() as @pure-unless-parameter-passed
zonuexe 431c09f
Combine the callable and parameter-passed purity verdicts
zonuexe c3953e5
Update bin/functionMetadata_original.php
zonuexe b7a61d6
Match arguments collected by a flagged variadic parameter
zonuexe e698108
Check the body of a @pure-unless-parameter-passed function
zonuexe a9400d4
Emit every purity condition when generating the function metadata
zonuexe 74af498
Cover every @pure-unless-parameter-passed builtin mapping
zonuexe 9303d78
Settle conditional purity where a callable value is invoked
zonuexe f60045e
Describe the function metadata entries with one optional-key shape
zonuexe aeb041b
Drop comments that restate the code
zonuexe 29888c7
Merge the two conditional purity parameter mergers into one class
zonuexe 9f785b3
Bump expected turbo version
zonuexe 1b763ee
Match the generator's header example to the generated metadata
zonuexe 84e2b0b
Leave the PCRE functions out of @pure-unless-parameter-passed
zonuexe 492041b
undo change
staabm c8b500f
Bump expected turbo version
staabm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.