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

Make the `definedIn` test actually test what it should test #200

Closed spaze closed 1 year ago

spaze commented 1 year ago

Static calls like Royale::withCheese() would require return new StaticCalls instead of return new MethodCalls in the test class' getRule() method otherwise they're irrelevant.

Follow-up to #198