implement isNull() on Type#1978
Conversation
starting with my next PR, I will take this into account. |
|
This pull request has been marked as ready for review. |
|
Small thought for ConstantInteger, ConstantString, ConstantBoolean, ... Rather than methods |
these types can already be checked with the |
|
@VincentLanglet I think a method like But integers complicate it a bit. I don't know how |
I thought the purpose of all those methods were to get rid of all the ? |
|
ondrej has a better idea of it, I am pretty sure.
I think we are getting rid of |
|
@VincentLanglet There's already @staabm We want to get rid of |
|
Thank you! |
|
good, then there's still work left for me 😅 |
|
@herndlm There's ton of work to be done, I'm looking forward to get rid of |
|
I know that there's no need to be worried hehe. great that multiple people are now actively cleaning up! |
|
Also SubtractableType, that's gonna be a lot of fun 😂 |
i ran into this exact case last week in a custom rule 😅 |
Refs phpstan/phpstan#8224 (comment)