Inspectopedia
 
2024.3

Compound namespace depth is more than 2

Info
New
Last modified: 03 December 2024

Reports the usages of compound namespaces whose depth exceeds two levels.

According to PSR-12, compound namespaces with a depth of more than two MUST NOT be used.

See PSR-12: Extended Coding Style (php-fig.org) for details.