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

Support `$foo::BAR` where `$foo` is declared as `class-string<Foo>` #186

Closed eithed closed 1 year ago

eithed commented 1 year ago

As discussed in #185:

This PR will:

Fixes #44 (partly, not the general class-string case)

spaze commented 1 year ago

Thanks a lot, good job! This is a very nice fix for #44, even if partial!

spaze commented 1 year ago

Released in 2.14.1 (replaced 2.14.0 with a quick fix #189)