Skip to content
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

Support string accessory types in BitwiseNot #1266

Merged
merged 4 commits into from May 15, 2022

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Apr 29, 2022

On my way to kill instanceof StringType cases

@staabm staabm force-pushed the bitwise-not-string-accessories branch from e0aafdc to b288633 Compare April 29, 2022 13:51
@ondrejmirtes
Copy link
Member

I don't think it's useful to apply numeric and literal strings this way. Numeric string isn't certainly kept numeric: https://3v4l.org/JERDB

@staabm staabm marked this pull request as draft April 29, 2022 14:24
@staabm staabm force-pushed the bitwise-not-string-accessories branch from 9524d23 to 2fa51e0 Compare May 10, 2022 07:47
@clxmstaab clxmstaab force-pushed the bitwise-not-string-accessories branch from 1fb313c to 1db480e Compare May 10, 2022 07:57
@staabm
Copy link
Contributor Author

staabm commented May 10, 2022

just adjusted the PR to only contain the non-empty-string related types.

Numeric string isn't certainly kept numeric

I thought about whether we should use a ErrorType, or add a Rule for that case.
for now I think it might be not worth it

@staabm staabm marked this pull request as ready for review May 10, 2022 08:00
@clxmstaab clxmstaab force-pushed the bitwise-not-string-accessories branch from 1db480e to 6379aff Compare May 10, 2022 08:00
@ondrejmirtes ondrejmirtes merged commit 92420cd into phpstan:1.6.x May 15, 2022
@ondrejmirtes
Copy link
Member

Thank you.

@staabm staabm deleted the bitwise-not-string-accessories branch May 15, 2022 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants