From 8ae33c5f7ce2f1b27dd0a3100f8e9bdbb18a5361 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Wed, 9 Aug 2023 19:38:30 +0700 Subject: [PATCH] [Php70] Remove appendArgs() usage on CallUserMethodRector (#4731) --- rules/Php70/Rector/FuncCall/CallUserMethodRector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/Php70/Rector/FuncCall/CallUserMethodRector.php b/rules/Php70/Rector/FuncCall/CallUserMethodRector.php index 633a3182134..5a2de851749 100644 --- a/rules/Php70/Rector/FuncCall/CallUserMethodRector.php +++ b/rules/Php70/Rector/FuncCall/CallUserMethodRector.php @@ -80,7 +80,7 @@ public function refactor(Node $node): ?Node unset($oldArgs[0]); unset($oldArgs[1]); - $node->args = $this->appendArgs($newArgs, $oldArgs); + $node->args = array_merge($newArgs, $oldArgs); return $node; }