Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Dec 23, 2025

lets reduce the work beeing done to a minimum in our most hot path

$hasGenericScalarTypes[ConstantBooleanType::class] = true;
}
if ($types[$i]->isFloat()->yes()) {
} elseif ($types[$i]->isFloat()->yes()) {
Copy link
Contributor Author

@staabm staabm Dec 23, 2025

Choose a reason for hiding this comment

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

something which is a bool yes() cannot be a float yes() at the same time etc.

@ondrejmirtes ondrejmirtes merged commit de8376e into phpstan:2.1.x Dec 23, 2025
632 of 639 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

@staabm staabm deleted the tweak branch December 23, 2025 12:24
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