Skip to content

Commit

Permalink
chore: update rector to 0.19.5
Browse files Browse the repository at this point in the history
  • Loading branch information
brotkrueml committed Jan 30, 2024
1 parent 2140c61 commit 2c19367
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan": "1.10.57",
"phpunit/phpunit": "^10.5",
"rector/rector": "0.19.0",
"rector/rector": "0.19.5",
"saschaegerer/phpstan-typo3": "^1.10",
"symfony/yaml": "^5.4 || ^6.4 || ^7.0",
"symplify/phpstan-rules": "^12.4",
Expand Down
7 changes: 3 additions & 4 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,27 @@
declare(strict_types=1);

use Rector\Config\RectorConfig;
use Rector\Core\ValueObject\PhpVersion;
use Rector\DeadCode\Rector\Cast\RecastingRemovalRector;
use Rector\DeadCode\Rector\StaticCall\RemoveParentCallWithoutParentRector;
use Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector;
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector;
use Rector\PHPUnit\CodeQuality\Rector\ClassMethod\ReplaceTestAnnotationWithPrefixedFunctionRector;
use Rector\PHPUnit\Set\PHPUnitLevelSetList;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;
use Rector\TypeDeclaration\Rector\ClassMethod\AddMethodCallBasedStrictParamTypeRector;
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictTypedPropertyRector;
use Rector\TypeDeclaration\Rector\FunctionLike\AddReturnTypeDeclarationFromYieldsRector;
use Rector\ValueObject\PhpVersion;

return static function (RectorConfig $config): void {
$config->import(LevelSetList::UP_TO_PHP_81);
$config->import(PHPUnitSetList::PHPUNIT_100);
$config->import(PHPUnitSetList::PHPUNIT_CODE_QUALITY);
$config->import(SetList::CODE_QUALITY);
$config->import(SetList::DEAD_CODE);
$config->import(SetList::EARLY_RETURN);
$config->import(SetList::TYPE_DECLARATION);
$config->import(PHPUnitLevelSetList::UP_TO_PHPUNIT_100);
$config->import(PHPUnitSetList::PHPUNIT_CODE_QUALITY);

$config->phpVersion(PhpVersion::PHP_81);

Expand Down

0 comments on commit 2c19367

Please sign in to comment.