Feature request
https://phpstan.org/r/b01b0b02-d1b4-4726-ab4a-be93066af673 - should report that int can never be Foo::ONE.
The logic should use the type system, so Type::getConstantArrays() and Type::getFiniteTypes(), not AST (Array_, Scalar etc.).
Did PHPStan help you today? Did it make you happy in any way?
No response
Feature request
https://phpstan.org/r/b01b0b02-d1b4-4726-ab4a-be93066af673 - should report that
intcan never beFoo::ONE.The logic should use the type system, so
Type::getConstantArrays()andType::getFiniteTypes(), not AST (Array_, Scalar etc.).Did PHPStan help you today? Did it make you happy in any way?
No response