analyse/disallowed/namespace
In the analyse-basic preset and every stricter one. Report only.
What it does
Reports uses of the namespaces and classes the config forbids (disallowedNamespaces, disallowedClasses).
Configuration
[analyse.rules]
"disallowed/namespace" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
NamespaceFirstClassCallableUsages(phpstan-classes)NamespaceUsages(phpstan-classes)disallowed.class(phpstan-disallowed-calls)disallowed.enum(phpstan-disallowed-calls)disallowed.interface(phpstan-disallowed-calls)disallowed.namespace(phpstan-disallowed-calls)disallowed.trait(phpstan-disallowed-calls)