Skip to content

Commit

Permalink
Merge pull request #4671 from samsonasik/apply-rctor-remove-unused-pr…
Browse files Browse the repository at this point in the history
…ivate-property

[Rector] Apply Rector: RemoveUnusedPrivatePropertyRector
  • Loading branch information
samsonasik authored May 11, 2021
2 parents 44621eb + 8a7af12 commit 968ba63
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"phpunit/phpunit": "^9.1",
"predis/predis": "^1.1",
"rector/rector": "0.10.21",
"squizlabs/php_codesniffer": "^3.3"
"squizlabs/php_codesniffer": "^3.3",
"symplify/composer-json-manipulator": "^9.3"
},
"suggest": {
"ext-fileinfo": "Improves mime type detection for files"
Expand Down
2 changes: 2 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use Rector\Core\ValueObject\PhpVersion;
use Rector\DeadCode\Rector\Concat\RemoveConcatAutocastRector;
use Rector\DeadCode\Rector\Foreach_\RemoveUnusedForeachKeyRector;
use Rector\DeadCode\Rector\Property\RemoveUnusedPrivatePropertyRector;
use Rector\DeadCode\Rector\Switch_\RemoveDuplicatedCaseInSwitchRector;
use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector;
use Rector\EarlyReturn\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector;
Expand Down Expand Up @@ -80,4 +81,5 @@
$services->set(RemoveConcatAutocastRector::class);
$services->set(ChangeArrayPushToArrayAssignRector::class);
$services->set(UnnecessaryTernaryExpressionRector::class);
$services->set(RemoveUnusedPrivatePropertyRector::class);
};
6 changes: 0 additions & 6 deletions tests/system/Helpers/DateHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@

final class DateHelperTest extends CIUnitTestCase
{

private $name;
private $value;
private $expire;
private $response;

protected function setUp(): void
{
parent::setUp();
Expand Down

0 comments on commit 968ba63

Please sign in to comment.