Skip to content

Commit 7e8fc18

Browse files
committed
[Rector] Apply Rector: RemoveDoubleAssignRector
1 parent b0978fb commit 7e8fc18

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

rector.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
use Rector\Core\Configuration\Option;
2929
use Rector\Core\ValueObject\PhpVersion;
3030
use Rector\DeadCode\Rector\Array_\RemoveDuplicatedArrayKeyRector;
31+
use Rector\DeadCode\Rector\Assign\RemoveDoubleAssignRector;
3132
use Rector\DeadCode\Rector\Assign\RemoveUnusedVariableAssignRector;
3233
use Rector\DeadCode\Rector\Concat\RemoveConcatAutocastRector;
3334
use Rector\DeadCode\Rector\Foreach_\RemoveUnusedForeachKeyRector;
@@ -113,4 +114,5 @@
113114
$services->set(FuncGetArgsToVariadicParamRector::class);
114115
$services->set(MakeInheritedMethodVisibilitySameAsParentRector::class);
115116
$services->set(RemoveDuplicatedArrayKeyRector::class);
117+
$services->set(RemoveDoubleAssignRector::class);
116118
};

tests/system/HTTP/IncomingRequestDetectingTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ public function testPathPathInfo()
152152

153153
public function testPathPathInfoGlobal()
154154
{
155-
$this->request->uri = '/index.php/woot?code=good#pos';
156155
$this->request->uri = '/index.php/woot?code=good#pos';
157156
$this->request->setGlobal('server', [
158157
'PATH_INFO' => 'silliness',

0 commit comments

Comments
 (0)