You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a constant using the Safe\define() function, and the value of the constant is an enum, PHPStan seems unable to understand the constant as a dynamic constant.
Environment
PHP version: 8.1.28
PHPStan version: 1.11.1
Safe version: 2.5.0
PHPStan Safe Rule version: 1.2.0
Description of problem
When creating a constant using the
Safe\define()
function, and the value of the constant is an enum, PHPStan seems unable to understand the constant as a dynamic constant.Example
PHPStan configuration
PHP
The text was updated successfully, but these errors were encountered: