File tree Expand file tree Collapse file tree
CodeQuality/Rector/ClassMethod Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515use Rector \Symfony \CodeQuality \Rector \ClassMethod \ParamTypeFromRouteRequiredRegexRector ;
1616use Rector \Symfony \CodeQuality \Rector \ClassMethod \RemoveUnusedRequestParamRector ;
1717use Rector \Symfony \CodeQuality \Rector \ClassMethod \ResponseReturnTypeControllerActionRector ;
18- use Rector \Symfony \CodeQuality \Rector \ClassMethod \ReturnDirectJsonResponseRector ;
1918use Rector \Symfony \CodeQuality \Rector \MethodCall \AssertSameResponseCodeWithDebugContentsRector ;
2019use Rector \Symfony \CodeQuality \Rector \MethodCall \LiteralGetToRequestClassConstantRector ;
2120use Rector \Symfony \CodeQuality \Rector \MethodCall \ParameterBagTypedGetMethodCallRector ;
Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ parameters:
7474
7575 # in tests
7676 -
77- message : ' #Fetching deprecated class constant SYMFONY_\d+ of class Rector\\Symfony\\Set\\SymfonySetList#'
78- path : tests
77+ message : ' #Fetching deprecated class constant SYMFONY_(.*?) of class Rector\\Symfony\\Set\\SymfonySetList#'
78+ paths :
79+ - tests
80+ - config/sets/symfony/annotations-to-attributes.php
7981
Original file line number Diff line number Diff line change 2727use Rector \BetterPhpDocParser \PhpDocInfo \PhpDocInfoFactory ;
2828use Rector \BetterPhpDocParser \PhpDocManipulator \PhpDocTagRemover ;
2929use Rector \Comments \NodeDocBlock \DocBlockUpdater ;
30- use Rector \Contract \PhpParser \Node \StmtsAwareInterface ;
3130use Rector \Doctrine \NodeAnalyzer \AttrinationFinder ;
3231use Rector \PhpParser \Node \BetterNodeFinder ;
3332use Rector \Rector \AbstractRector ;
@@ -363,8 +362,11 @@ private function removeDoctrineAnnotationTagValueNode(
363362 }
364363 }
365364
365+ /**
366+ * @param StmtsAware $stmtsAware
367+ */
366368 private function refactorStmtsAwareNode (
367- StmtsAwareInterface $ stmtsAware ,
369+ Node $ stmtsAware ,
368370 DoctrineAnnotationTagValueNode | Attribute $ templateTagValueNodeOrAttribute ,
369371 bool $ hasThisRenderOrReturnsResponse ,
370372 ClassMethod $ classMethod
Original file line number Diff line number Diff line change 1212use PhpParser \Node \Scalar \String_ ;
1313use PhpParser \Node \Stmt \Expression ;
1414use PHPStan \Type \ObjectType ;
15- use Rector \Contract \PhpParser \Node \StmtsAwareInterface ;
1615use Rector \PhpParser \Enum \NodeGroup ;
1716use Rector \PhpParser \Node \BetterNodeFinder ;
1817use Rector \Rector \AbstractRector ;
@@ -123,7 +122,10 @@ public function refactor(Node $node): ?Node
123122 return null ;
124123 }
125124
126- private function getRootMethodCallNode (StmtsAwareInterface $ stmtsAware ): ?Node
125+ /**
126+ * @param StmtsAware $stmtsAware
127+ */
128+ private function getRootMethodCallNode (Node $ stmtsAware ): ?Node
127129 {
128130 $ methodCalls = $ this ->betterNodeFinder ->findInstanceOf ($ stmtsAware , MethodCall::class);
129131
You can’t perform that action at this time.
0 commit comments