Skip to content

Commit c2d4405

Browse files
committed
show only once
1 parent 998146c commit c2d4405

File tree

1 file changed

+0
-43
lines changed

1 file changed

+0
-43
lines changed

README.md

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -846,49 +846,6 @@ final class SomeException extends Exception
846846

847847
<br>
848848

849-
### RequireInvokableControllerRule
850-
851-
Use invokable controller with `__invoke()` method instead of named action method
852-
853-
```yaml
854-
rules:
855-
- Symplify\PHPStanRules\Rules\Symfony\RequireInvokableControllerRule
856-
```
857-
858-
```php
859-
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
860-
use Symfony\Component\Routing\Annotation\Route;
861-
862-
final class SomeController extends AbstractController
863-
{
864-
#[Route()]
865-
public function someMethod()
866-
{
867-
}
868-
}
869-
```
870-
871-
:x:
872-
873-
<br>
874-
875-
```php
876-
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
877-
use Symfony\Component\Routing\Annotation\Route;
878-
879-
final class SomeController extends AbstractController
880-
{
881-
#[Route()]
882-
public function __invoke()
883-
{
884-
}
885-
}
886-
```
887-
888-
:+1:
889-
890-
<br>
891-
892849
### RequireUniqueEnumConstantRule
893850

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

0 commit comments

Comments
 (0)