Module Package Naming (ARCH7010)
Esta página aún no está disponible en tu idioma.
Key php.naming.namespace-psr4-naming · Severity info · Category naming
PSR-4 requires namespace segments to be PascalCase and to mirror the directory structure. snake_case or all-lowercase namespace segments break autoloading.
Incorrect
Section titled “Incorrect”<?php
namespace app\billing_module;
class Invoice{ public function total(): int { return 0; }}Correct
Section titled “Correct”<?php
namespace App\BillingModule;
class Invoice{ public function total(): int { return 0; }}Make namespace segments PascalCase and align them with the PSR-4 directory layout.