File tree Expand file tree Collapse file tree
rules/Php86/Rector/FuncCall Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55namespace Rector \Php86 \Rector \FuncCall ;
66
7+ use PhpParser \Node \Identifier ;
78use PhpParser \Node ;
89use PhpParser \Node \Arg ;
910use PhpParser \Node \Expr ;
@@ -129,7 +130,7 @@ private function createClampFuncCall(
129130
130131 private function isSupportedArg (Arg $ arg ): bool
131132 {
132- return ! $ arg ->unpack && $ arg ->name === null ;
133+ return ! $ arg ->unpack && ! $ arg ->name instanceof Identifier ;
133134 }
134135
135136 /**
Original file line number Diff line number Diff line change @@ -224,9 +224,9 @@ protected function getType(Node $node): Type
224224 /**
225225 * Use this method for getting native expr type
226226 */
227- protected function getNativeType (Expr $ node ): Type
227+ protected function getNativeType (Expr $ expr ): Type
228228 {
229- return $ this ->nodeTypeResolver ->getNativeType ($ node );
229+ return $ this ->nodeTypeResolver ->getNativeType ($ expr );
230230 }
231231
232232 /**
You can’t perform that action at this time.
0 commit comments