Bug report
When defining array constants within a PHP trait, if the array's keys or values utilize constants defined in the class that uses the trait, an error occurs. This issue hinders the ability to leverage class constants within trait-defined array constants, which can be a significant limitation in certain use cases.
Code snippet that reproduces the problem
https://phpstan.org/r/258a27f9-3c5a-4636-8f73-467efaeb5332
Expected output
OK
Did PHPStan help you today? Did it make you happy in any way?
No response