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

Remove `instanceof *Type` #174

Closed spaze closed 1 year ago

spaze commented 1 year ago

Remove instanceof *Type checks and replace them according to this blog post. Require PHPStan 1.10 that has the new methods.