spaze / phpstan-disallowed-calls

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

Don't throw "Cannot access constant FOO on mixed" #189

Closed spaze closed 1 year ago

spaze commented 1 year ago

Mixed type object may have the constant but we're not sure, only throw the error when we're damn sure. This regression has been introduced in #186