Enumhancer and PHPStan If you are using PHPStan for static analysis, you can enable the extension. Add the following to your projects phpstan.neon: includes: - vendor/henzeb/enumhancer/extension.neon