analyse/classes/invalid-static-method-callable
In the analyse-basic preset and every stricter one. Report only.
What it does
Checks class and method existence, visibility, static-call rules and abstract methods when creating a first-class static method callable. Callable creation does not pass arguments. The check-function-name-case option also checks method spelling.
Configuration
[analyse.rules]
"classes/invalid-static-method-callable" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
StaticMethodCallableRule(phpstan-classes)method.callToAbstract(phpstan)method.staticCall(phpstan)staticMethod.callToAbstract(phpstan)staticMethod.nameCase(phpstan)staticMethod.nonObject(phpstan)