Skip to content

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

Development

Successfully merging this pull request may close these issues.

3 participants