File tree Expand file tree Collapse file tree 1 file changed +0
-43
lines changed
Expand file tree Collapse file tree 1 file changed +0
-43
lines changed Original file line number Diff line number Diff 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
894851Enum constants "%s" are duplicated. Make them unique instead
You can’t perform that action at this time.
0 commit comments