Skip to content

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Aug 30, 2024

Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved this 2 if-blocks out of specifyTypesForConstantBinaryExpression as we no longer check for a constant type operand, but do a more general isInteger based handling, which includes unbound IntegerRangeType.

Copy link
Contributor Author

@staabm staabm Aug 30, 2024

Choose a reason for hiding this comment

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

compensated the now passed in maybe unbound IntegerRangeTypes

Copy link
Contributor Author

@staabm staabm Aug 30, 2024

Choose a reason for hiding this comment

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

I think I did a mistake here in previous PR, as the array can still be empty in the else branch

https://3v4l.org/409Jp

@staabm staabm marked this pull request as ready for review August 30, 2024 12:07
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

Copy link
Member

@ondrejmirtes ondrejmirtes left a comment

Choose a reason for hiding this comment

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

Too many changes. I can't read that diff. Please send this in smaller chunks.

@staabm staabm marked this pull request as draft September 2, 2024 18:37
@staabm staabm closed this Sep 6, 2024
@staabm staabm deleted the count-range branch September 6, 2024 06:14
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.

Narrow array on count(), string on strlen() with positive-int

3 participants