File tree Expand file tree Collapse file tree
rules/TypeDeclaration/Rector/ClassMethod Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,13 +110,11 @@ public function refactor(Node $node): ?Node
110110 }
111111 }
112112
113- if ($ this ->isName ($ classMethod , MethodName::__SET)) {
114- if ($ this ->phpVersionProvider ->isAtLeastPhpVersion (PhpVersionFeature::MIXED_TYPE )) {
115- $ secondParam = $ classMethod ->getParams ()[1 ];
116- if (! $ secondParam ->type instanceof Node) {
117- $ secondParam ->type = new Identifier ('mixed ' );
118- $ hasChanged = true ;
119- }
113+ if ($ this ->isName ($ classMethod , MethodName::__SET) && $ this ->phpVersionProvider ->isAtLeastPhpVersion (PhpVersionFeature::MIXED_TYPE )) {
114+ $ secondParam = $ classMethod ->getParams ()[1 ];
115+ if (! $ secondParam ->type instanceof Node) {
116+ $ secondParam ->type = new Identifier ('mixed ' );
117+ $ hasChanged = true ;
120118 }
121119 }
122120 }
You can’t perform that action at this time.
0 commit comments