Skip to content

Commit

Permalink
Merge pull request #5000 from samsonasik/remove-double-assign
Browse files Browse the repository at this point in the history
[Rector] Apply Rector: RemoveDoubleAssignRector
  • Loading branch information
samsonasik committed Aug 14, 2021
2 parents b0978fb + 7e8fc18 commit 381748a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -113,4 +114,5 @@
$services->set(FuncGetArgsToVariadicParamRector::class);
$services->set(MakeInheritedMethodVisibilitySameAsParentRector::class);
$services->set(RemoveDuplicatedArrayKeyRector::class);
$services->set(RemoveDoubleAssignRector::class);
};
1 change: 0 additions & 1 deletion tests/system/HTTP/IncomingRequestDetectingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 381748a

Please sign in to comment.