analyse/classes/inaccessible-method
In the analyse-essential preset and every stricter one. Report only.
Configuration
[analyse.rules]
"classes/inaccessible-method" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
CallPrivateMethodThroughStaticRule(phpstan-classes)staticClassAccess.privateMethod(phpstan)