|
1 | 1 | <?php |
2 | 2 |
|
3 | | -use Rector\Config\RectorConfig; |
4 | 3 | use Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector; |
5 | 4 | use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector; |
6 | 5 | use Rector\CodeQuality\Rector\For_\ForToForeachRector; |
|
18 | 17 | use Rector\CodingStyle\Rector\ClassMethod\FuncGetArgsToVariadicParamRector; |
19 | 18 | use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector; |
20 | 19 | use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector; |
| 20 | +use Rector\Config\RectorConfig; |
21 | 21 | use Rector\Core\ValueObject\PhpVersion; |
22 | 22 | use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector; |
23 | 23 | use Rector\DeadCode\Rector\MethodCall\RemoveEmptyMethodCallRector; |
|
29 | 29 | use Rector\Php56\Rector\FunctionLike\AddDefaultValueForUndefinedVariableRector; |
30 | 30 | use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector; |
31 | 31 | use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector; |
32 | | -use Rector\Php74\Rector\Property\TypedPropertyRector; |
33 | 32 | use Rector\PHPUnit\Set\PHPUnitSetList; |
34 | 33 | use Rector\PSR4\Rector\FileWithoutNamespace\NormalizeNamespaceByPSR4ComposerAutoloadRector; |
35 | 34 | use Rector\Set\ValueObject\LevelSetList; |
36 | 35 | use Rector\Set\ValueObject\SetList; |
| 36 | +use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector; |
37 | 37 |
|
38 | 38 | return static function (RectorConfig $rectorConfig): void { |
39 | 39 | $rectorConfig->sets([SetList::DEAD_CODE, LevelSetList::UP_TO_PHP_74, PHPUnitSetList::PHPUNIT_SPECIFIC_METHOD, PHPUnitSetList::PHPUNIT_80]); |
|
112 | 112 | $rectorConfig->rule(SimplifyEmptyArrayCheckRector::class); |
113 | 113 | $rectorConfig->rule(NormalizeNamespaceByPSR4ComposerAutoloadRector::class); |
114 | 114 | $rectorConfig |
115 | | - ->ruleWithConfiguration(TypedPropertyRector::class, [ |
| 115 | + ->ruleWithConfiguration(TypedPropertyFromAssignsRector::class, [ |
116 | 116 | // Set to false if you use in libraries, or it does create breaking changes. |
117 | | - TypedPropertyRector::INLINE_PUBLIC => true, |
| 117 | + TypedPropertyFromAssignsRector::INLINE_PUBLIC => true, |
118 | 118 | ]); |
119 | 119 | }; |
0 commit comments