Skip to content

Specify conditional types for all falsey scalars - #4995

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

staabm merged 7 commits into
phpstan:2.1.xfrom
staabm:bug6120

Conversation

@staabm

@staabm staabm commented Feb 19, 2026 •

Copy link
Copy Markdown
Contributor

@phpstan-bot

Copy link
Copy Markdown
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
Copy Markdown
Collaborator

This pull request has been marked as ready for review.

@VincentLanglet VincentLanglet left a comment

Copy link
Copy Markdown
Contributor

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

staabm commented Feb 19, 2026

Copy link
Copy Markdown
Contributor Author

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

staabm commented Feb 19, 2026

Copy link
Copy Markdown
Contributor Author

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