Skip to content

Commit

Permalink
Remove NoSingleInterfaceImplementerRule as way complex, let devs hand…
Browse files Browse the repository at this point in the history
…le it
  • Loading branch information
TomasVotruba committed Dec 18, 2024
1 parent be7b28d commit 585af5a
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 278 deletions.
41 changes: 0 additions & 41 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -596,47 +596,6 @@ final class SomeClass

<br>

### NoSingleInterfaceImplementerRule

Interface "%s" has only single implementer. Consider using the class directly as there is no point in using the interface.

```yaml
rules:
- Symplify\PHPStanRules\Rules\NoSingleInterfaceImplementerRule
```
```php
class SomeClass implements SomeInterface
{
}

interface SomeInterface
{
}
```

:x:

<br>

```php
class SomeClass implements SomeInterface
{
}

class AnotherClass implements SomeInterface
{
}

interface SomeInterface
{
}
```

:+1:

<br>

### NoTestMocksRule

Mocking "%s" class is forbidden. Use direct/anonymous class instead for better static analysis
Expand Down
17 changes: 0 additions & 17 deletions config/code-complexity-rules.neon
Original file line number Diff line number Diff line change
@@ -1,19 +1,2 @@
rules:
- Symplify\PHPStanRules\Rules\NoDynamicNameRule
- Symplify\PHPStanRules\Rules\NoSingleInterfaceImplementerRule

services:
-
class: Symplify\PHPStanRules\Collector\InterfaceCollector
tags:
- phpstan.collector

-
class: Symplify\PHPStanRules\Collector\ImplementedInterfaceCollector
tags:
- phpstan.collector

-
class: Symplify\PHPStanRules\Collector\InterfaceOfAbstractClassCollector
tags:
- phpstan.collector
42 changes: 0 additions & 42 deletions src/Collector/ImplementedInterfaceCollector.php

This file was deleted.

31 changes: 0 additions & 31 deletions src/Collector/InterfaceCollector.php

This file was deleted.

41 changes: 0 additions & 41 deletions src/Collector/InterfaceOfAbstractClassCollector.php

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 585af5a

Please sign in to comment.