Skip to content

Commit

Permalink
show only once
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Dec 18, 2024
1 parent 998146c commit c2d4405
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -846,49 +846,6 @@ final class SomeException extends Exception

<br>

### RequireInvokableControllerRule

Use invokable controller with `__invoke()` method instead of named action method

```yaml
rules:
- Symplify\PHPStanRules\Rules\Symfony\RequireInvokableControllerRule
```
```php
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;

final class SomeController extends AbstractController
{
#[Route()]
public function someMethod()
{
}
}
```

:x:

<br>

```php
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;

final class SomeController extends AbstractController
{
#[Route()]
public function __invoke()
{
}
}
```

:+1:

<br>

### RequireUniqueEnumConstantRule

Enum constants "%s" are duplicated. Make them unique instead
Expand Down

0 comments on commit c2d4405

Please sign in to comment.