Skip to content
On this page

CompoundNamespaceDepth

Verifies that compound namespaces are not defined too deep.

Scope

PSR12.Namespaces.CompoundNamespaceDepth

Description

Compound namespaces with a depth of more than two MUST NOT be used.

Properties

Property NameTypeDefaultAvailable Since
maxDepthint23.3.0

Usage

xml
<rule ref="PSR12.Namespaces.CompoundNamespaceDepth">
    <properties>
        <property name="maxDepth" value="4" />
    </properties>
</rule>

Examples

No Examples Available

Please edit this page through Github to add examples.

Released under the MIT License.