Skip to content

Commit

Permalink
Upgraded rector to 0.18
Browse files Browse the repository at this point in the history
  • Loading branch information
rotimi committed Aug 29, 2023
1 parent 416526e commit 5d4626d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"require-dev": {
"phpunit/phpunit": "^9.0",
"php-coveralls/php-coveralls": "^2.0",
"rector/rector": "^0.17.0",
"rector/rector": "^0.18.0",
"vimeo/psalm": "^5.4"
},
"autoload": {
Expand Down
5 changes: 2 additions & 3 deletions rector.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
declare(strict_types=1);

use Rector\Php74\Rector\Property\TypedPropertyRector;
use Rector\Set\ValueObject\SetList;
use Rector\Config\RectorConfig;

Expand Down Expand Up @@ -41,8 +40,8 @@
//$services->set(TypedPropertyRector::class);

// get services (needed for register a single rule)
$services = $rectorConfigurator->services();
//$services = $rectorConfigurator->services();

//TODO:PHP8 comment once PHP 8 becomes minimum version
$services->remove(Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector::class);
//$services->remove(Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector::class);
};

0 comments on commit 5d4626d

Please sign in to comment.