Skip to content

Specify conditional types for all falsey scalars#4995

Merged
staabm merged 7 commits intophpstan:2.1.xfrom
staabm:bug6120
Feb 19, 2026
Merged

Specify conditional types for all falsey scalars#4995
staabm merged 7 commits intophpstan:2.1.xfrom
staabm:bug6120

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Feb 19, 2026

@phpstan-bot
Copy link
Collaborator

You've opened the pull request against the latest branch 2.2.x. PHPStan 2.2 is not going to be released for months. If your code is relevant on 2.1.x and you want it to be released sooner, please rebase your pull request and change its target to 2.1.x.

@staabm staabm changed the base branch from 2.2.x to 2.1.x February 19, 2026 12:50
@staabm staabm marked this pull request as ready for review February 19, 2026 13:17
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

Copy link
Contributor

@VincentLanglet VincentLanglet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems awesome ; I'm just wondering if it has any perf/memory impact

@staabm
Copy link
Contributor Author

staabm commented Feb 19, 2026

I'm just wondering if it has any perf/memory impact

I had the same feeling. running the "reference benchmark" aka php bin/phpstan analyse src/Analyser/ src/Rules/ -v --debug did not show a measurable difference

@staabm
Copy link
Contributor Author

staabm commented Feb 19, 2026

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.

3 participants

Comments