Skip to content

Commit

Permalink
Update architecture/developer-guide.md
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeTowers authored Dec 17, 2024
1 parent fa59499 commit e67b3f1
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions architecture/developer-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:**
Expand Down

0 comments on commit e67b3f1

Please sign in to comment.