Skip to content

Commit 1358f64

Browse files
committed
Fix rector config deprecated TypedPropertyRector
1 parent cf4df09 commit 1358f64

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector;
4-
use Rector\Config\RectorConfig;
53
use Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector;
64
use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector;
75
use Rector\CodeQuality\Rector\For_\ForToForeachRector;
@@ -19,6 +17,7 @@
1917
use Rector\CodingStyle\Rector\ClassMethod\FuncGetArgsToVariadicParamRector;
2018
use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector;
2119
use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector;
20+
use Rector\Config\RectorConfig;
2221
use Rector\Core\ValueObject\PhpVersion;
2322
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector;
2423
use Rector\DeadCode\Rector\MethodCall\RemoveEmptyMethodCallRector;
@@ -34,6 +33,7 @@
3433
use Rector\PSR4\Rector\FileWithoutNamespace\NormalizeNamespaceByPSR4ComposerAutoloadRector;
3534
use Rector\Set\ValueObject\LevelSetList;
3635
use Rector\Set\ValueObject\SetList;
36+
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector;
3737

3838
return static function (RectorConfig $rectorConfig): void {
3939
$rectorConfig->sets([SetList::DEAD_CODE, LevelSetList::UP_TO_PHP_74, PHPUnitSetList::PHPUNIT_SPECIFIC_METHOD, PHPUnitSetList::PHPUNIT_80]);

src/Template/rector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Rector\CodingStyle\Rector\ClassMethod\FuncGetArgsToVariadicParamRector;
1818
use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector;
1919
use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector;
20-
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector;
2120
use Rector\Config\RectorConfig;
2221
use Rector\Core\ValueObject\PhpVersion;
2322
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector;
@@ -35,6 +34,7 @@
3534
use Rector\PSR4\Rector\FileWithoutNamespace\NormalizeNamespaceByPSR4ComposerAutoloadRector;
3635
use Rector\Set\ValueObject\LevelSetList;
3736
use Rector\Set\ValueObject\SetList;
37+
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector;
3838

3939
return static function (RectorConfig $rectorConfig): void {
4040
$rectorConfig->sets([SetList::DEAD_CODE, LevelSetList::UP_TO_PHP_74, PHPUnitSetList::PHPUNIT_SPECIFIC_METHOD, PHPUnitLevelSetList::UP_TO_PHPUNIT_100]);

0 commit comments

Comments
 (0)