Skip to content

Commit

Permalink
chore: update rector to 0.17.7
Browse files Browse the repository at this point in the history
  • Loading branch information
brotkrueml committed Jul 31, 2023
1 parent 13dc34b commit 855f31a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan": "1.10.26",
"phpunit/phpunit": "^9.6",
"rector/rector": "0.16.0",
"rector/rector": "0.17.7",
"symfony/yaml": "^5.4 || ^6.2",
"symplify/phpstan-rules": "^12.0",
"tomasvotruba/cognitive-complexity": "^0.1.1"
Expand Down
7 changes: 4 additions & 3 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
use Rector\Core\ValueObject\PhpVersion;
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector;
use Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector;
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector;
use Rector\PHPUnit\CodeQuality\Rector\ClassMethod\ReplaceTestAnnotationWithPrefixedFunctionRector;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;
Expand All @@ -23,9 +25,6 @@
SetList::EARLY_RETURN,
SetList::TYPE_DECLARATION,
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
PHPUnitSetList::PHPUNIT_EXCEPTION,
PHPUnitSetList::PHPUNIT_SPECIFIC_METHOD,
PHPUnitSetList::PHPUNIT_YIELD_DATA_PROVIDER,
]);

$config->autoloadPaths([
Expand All @@ -43,7 +42,9 @@
AddReturnTypeDeclarationFromYieldsRector::class => [
__DIR__ . '/Tests/*',
],
PreferPHPUnitThisCallRector::class,
RemoveUnusedPromotedPropertyRector::class, // to avoid rector warning on PHP8.0 with codebase compatible with PHP7.4
ReplaceTestAnnotationWithPrefixedFunctionRector::class,
TypedPropertyFromAssignsRector::class => [
__DIR__ . '/Classes/Event/TrackSiteSearchEvent.php',
],
Expand Down

0 comments on commit 855f31a

Please sign in to comment.