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

Added `disallowedEnums`, they use `DisallowedConstant` internally #243

Closed spaze closed 10 months ago

spaze commented 10 months ago

disallowedEnums are configured with enum & case fields which are just aliases for constant & class fields, and these new fields would also work for constants but luckily parametersSchema config in extension.neon would prevent it.

Besides the aliases, this adds tests & docs, mostly.