From 7e8fc189217bf22e405842f47afd922f67c44b1f Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sat, 14 Aug 2021 18:50:09 +0700 Subject: [PATCH] [Rector] Apply Rector: RemoveDoubleAssignRector --- rector.php | 2 ++ tests/system/HTTP/IncomingRequestDetectingTest.php | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rector.php b/rector.php index 3f65b0a273e6..22e33e3d0730 100644 --- a/rector.php +++ b/rector.php @@ -28,6 +28,7 @@ use Rector\Core\Configuration\Option; use Rector\Core\ValueObject\PhpVersion; use Rector\DeadCode\Rector\Array_\RemoveDuplicatedArrayKeyRector; +use Rector\DeadCode\Rector\Assign\RemoveDoubleAssignRector; use Rector\DeadCode\Rector\Assign\RemoveUnusedVariableAssignRector; use Rector\DeadCode\Rector\Concat\RemoveConcatAutocastRector; use Rector\DeadCode\Rector\Foreach_\RemoveUnusedForeachKeyRector; @@ -113,4 +114,5 @@ $services->set(FuncGetArgsToVariadicParamRector::class); $services->set(MakeInheritedMethodVisibilitySameAsParentRector::class); $services->set(RemoveDuplicatedArrayKeyRector::class); + $services->set(RemoveDoubleAssignRector::class); }; diff --git a/tests/system/HTTP/IncomingRequestDetectingTest.php b/tests/system/HTTP/IncomingRequestDetectingTest.php index dfb963d05c34..a28fd86525da 100644 --- a/tests/system/HTTP/IncomingRequestDetectingTest.php +++ b/tests/system/HTTP/IncomingRequestDetectingTest.php @@ -152,7 +152,6 @@ public function testPathPathInfo() public function testPathPathInfoGlobal() { - $this->request->uri = '/index.php/woot?code=good#pos'; $this->request->uri = '/index.php/woot?code=good#pos'; $this->request->setGlobal('server', [ 'PATH_INFO' => 'silliness',