-
Notifications
You must be signed in to change notification settings - Fork 578
Implement @pure-unless-callable-is-impure #3482
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
Draft
zonuexe
wants to merge
18
commits into
phpstan:2.2.x
Choose a base branch
from
zonuexe:feature/pure-unless-callable-is-impure
base: 2.2.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
b93ad8b
Parse @pure-unless-callable-is-impure PHPDoc tag
zonuexe b103f39
Thread pure-unless-callable-is-impure through the reflection layer
zonuexe 83ab4a7
Wire pure-unless-callable-is-impure into the analyser
zonuexe 14dbc2c
Mark callback-accepting builtins as pure-unless-callable-is-impure
zonuexe cc3c0a8
Add tests for @pure-unless-callable-is-impure
zonuexe e1fb83c
Fix pure-unless-callable-is-impure parameter flag propagation
zonuexe 84ddffa
Suppress call impure points when pure-unless-callable-is-impure callb…
zonuexe 49eed1f
Fix CI: avoid named arguments, adjust no-effect fixture
zonuexe 8cd2e63
Cover pure-unless-callable-is-impure verdict for maybe-null and maybe…
zonuexe 4cfd61a
Simplify pure-unless-callable-is-impure metadata reads
zonuexe 5a31338
Document the shape of the function metadata array
zonuexe e3e4b6a
Mark array_all() and array_any() as pure-unless-callable-is-impure
zonuexe 625d506
Honor pure-unless-callable-is-impure metadata for stub-reflected func…
zonuexe e7c4b29
Add lint version comment to the PHP 8.4 pure-unless fixture
zonuexe e23483b
Honor @pure-unless-callable-is-impure on methods
zonuexe c45ca89
Note the two paths that intentionally don't thread pure-unless yet
zonuexe 09b962b
Honor @pure-unless-callable-is-impure on constructor calls
zonuexe ce5e53a
Drop the native mixed property type from the pure-unless fixture
zonuexe 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
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.