Bug report
Since v2.2.0, PHPStan reports argument.invalidConstant on Collator::setAttribute() with Collator::ON as second parameter (see reproduction code).
Code snippet that reproduces the problem
https://phpstan.org/r/f499e8b6-ec8b-460d-8ead-fcb0870a8f1d
Expected output
There should be no error; it's totally fine to pass Collator::ON as constant.
Did PHPStan help you today? Did it make you happy in any way?
No response
Bug report
Since v2.2.0, PHPStan reports
argument.invalidConstantonCollator::setAttribute()withCollator::ONas second parameter (see reproduction code).Code snippet that reproduces the problem
https://phpstan.org/r/f499e8b6-ec8b-460d-8ead-fcb0870a8f1d
Expected output
There should be no error; it's totally fine to pass
Collator::ONas constant.Did PHPStan help you today? Did it make you happy in any way?
No response