spaze / phpstan-disallowed-calls

PHPStan rules to detect disallowed method & function calls, constant, namespace, attribute & superglobal usages
MIT License
263 stars 17 forks source link

Process `ClassConstFetch` where `$class` is `Name` only for enums #266

Closed spaze closed 1 month ago

spaze commented 1 month ago

PHPStan 1.12.6 started "Process[ing] ClassConstFetch::$class when it's a Name node" (phpstan/phpstan-src@712c33e) and that now duplicates findings by the FullyQualified check above on class constants.

https://github.com/phpstan/phpstan/releases/tag/1.12.6