analyse/disallowed/method
In the analyse-basic preset and every stricter one. Report only.
What it does
Reports calls of the methods and constructors the config forbids (disallowedMethodCalls).
Configuration
[analyse.rules]
"disallowed/method" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
MethodCalls(phpstan-classes)MethodFirstClassCallables(phpstan-classes)NewCalls(phpstan-classes)disallowed.method(phpstan-disallowed-calls)disallowed.new(phpstan-disallowed-calls)