diff --git a/doc/namespaces.md b/doc/namespaces.md index 3c5d6cd6..563a09a8 100644 --- a/doc/namespaces.md +++ b/doc/namespaces.md @@ -130,22 +130,22 @@ Sniff provides the following settings: * `allowFallbackGlobalConstants`: allows using global constants via fallback name without `use` (i.e. `PHP_VERSION`). * `allowPartialUses`: allows using and referencing whole namespaces. -#### SlevomatCodingStandard.Namespaces.UseFromSameNamespace 🔧 +#### SlevomatCodingStandard.Namespaces.UseDoesNotStartWithBackslash 🔧 -Sniff prohibits uses from the same namespace: +Disallows leading backslash in use statement: ```php -namespace Foo; - -use Foo\Bar; +use \Foo\Bar; ``` -#### SlevomatCodingStandard.Namespaces.UseDoesNotStartWithBackslash 🔧 +#### SlevomatCodingStandard.Namespaces.UseFromSameNamespace 🔧 -Disallows leading backslash in use statement: +Sniff prohibits uses from the same namespace: ```php -use \Foo\Bar; +namespace Foo; + +use Foo\Bar; ``` #### SlevomatCodingStandard.Namespaces.UseSpacing 🔧