Bug report
PHPStan is reporting If condition is always true on a condition that depends on a constant, which is itself declared as a "dynamic constant" in the PHPStan config file.
Code snippet that reproduces the problem
Code snippet
phpstan config:
parameters:
level: 5
dynamicConstantNames:
- ENABLE_CORS
Expected output
PHPStan should not report this warning.
Did PHPStan help you today? Did it make you happy in any way?
PHPStan is great :-)
Bug report
PHPStan is reporting
If condition is always trueon a condition that depends on a constant, which is itself declared as a "dynamic constant" in the PHPStan config file.Code snippet that reproduces the problem
Code snippet
phpstan config:
Expected output
PHPStan should not report this warning.
Did PHPStan help you today? Did it make you happy in any way?
PHPStan is great :-)