Skip to content

Commit cf4df09

Browse files
committed
Fix config rector in template
1 parent 2ed9e26 commit cf4df09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Template/rector.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
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;
2021
use Rector\Config\RectorConfig;
2122
use Rector\Core\ValueObject\PhpVersion;
2223
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector;
@@ -29,7 +30,6 @@
2930
use Rector\Php56\Rector\FunctionLike\AddDefaultValueForUndefinedVariableRector;
3031
use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector;
3132
use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector;
32-
use Rector\Php74\Rector\Property\TypedPropertyRector;
3333
use Rector\PHPUnit\Set\PHPUnitLevelSetList;
3434
use Rector\PHPUnit\Set\PHPUnitSetList;
3535
use Rector\PSR4\Rector\FileWithoutNamespace\NormalizeNamespaceByPSR4ComposerAutoloadRector;
@@ -114,8 +114,8 @@
114114
$rectorConfig->rule(SimplifyEmptyArrayCheckRector::class);
115115
$rectorConfig->rule(NormalizeNamespaceByPSR4ComposerAutoloadRector::class);
116116
$rectorConfig
117-
->ruleWithConfiguration(TypedPropertyRector::class, [
117+
->ruleWithConfiguration(TypedPropertyFromAssignsRector::class, [
118118
// Set to false if you use in libraries, or it does create breaking changes.
119-
TypedPropertyRector::INLINE_PUBLIC => true,
119+
TypedPropertyFromAssignsRector::INLINE_PUBLIC => true,
120120
]);
121121
};

0 commit comments

Comments
 (0)