analyse/functions/invalid-first-class-callable
In the analyse-basic preset and every stricter one. Report only.
What it does
Reports unknown named functions and non-callable expressions used in first-class callable syntax.
Configuration
[analyse.rules]
"functions/invalid-first-class-callable" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
FunctionCallableRule(phpstan-classes)callable.nonCallable(phpstan)