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

Hardcode `ENT_QUOTES` as int `3` in `disallowed-loose-calls.neon` config #250

Closed spaze closed 9 months ago

spaze commented 9 months ago

PHPStan 1.10.58 updated nette/di from v3.1.5 to v3.1.10 and possibly that's the reason why ::constant is not accepted anymore. https://github.com/phpstan/phpstan-src/pull/2907

The config file is tested so even if the value of the constant would change, however unlikely, it would be detected by failing tests.

Close #249

Introduced in #222 as a fix for https://github.com/phpstan/phpstan/issues/10223