From e67b3f1eea80e15fbb2cff1b9afaa841c4d22293 Mon Sep 17 00:00:00 2001 From: Luke Towers Date: Tue, 17 Dec 2024 17:51:58 -0600 Subject: [PATCH] Update architecture/developer-guide.md --- architecture/developer-guide.md | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/architecture/developer-guide.md b/architecture/developer-guide.md index 40d27ec4..17d97507 100644 --- a/architecture/developer-guide.md +++ b/architecture/developer-guide.md @@ -172,36 +172,6 @@ use Cms\Classes\{ }; ``` -##### - We disallow using a `use` case for a class that exists in the same namespace as the current class - -**Valid:** - -```php -namespace Acme\Blog\Classes; - -class Foo -{ - // ... - $bar = new Bar(); - // .. -} -``` - -**Invalid:** - -```php -namespace Acme\Blog\Classes; - -use Acme\Blog\Classes\Bar; - -class Foo -{ - // ... - $bar = new Bar(); - // .. -} -``` - ##### - We disallow a starting backslash for `use` cases, unless it is for importing a trait **Valid:**