Skip to content

Commit 8253b86

Browse files
committed
update deprecated TypedPropertyRector to TypedPropertyFromAssignsRector
1 parent e271c31 commit 8253b86

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/rector.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@ jobs:
6262
6363
- name: Analyze for refactoring
6464
run: |
65-
composer global require --dev rector/rector:^0.13.8
65+
composer global require --dev rector/rector:^0.15.0
6666
rector process --dry-run --no-progress-bar

rector.php

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

3+
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector;
34
use Rector\Config\RectorConfig;
45
use Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector;
56
use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector;
@@ -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\PHPUnitSetList;
3434
use Rector\PSR4\Rector\FileWithoutNamespace\NormalizeNamespaceByPSR4ComposerAutoloadRector;
3535
use Rector\Set\ValueObject\LevelSetList;
@@ -112,8 +112,8 @@
112112
$rectorConfig->rule(SimplifyEmptyArrayCheckRector::class);
113113
$rectorConfig->rule(NormalizeNamespaceByPSR4ComposerAutoloadRector::class);
114114
$rectorConfig
115-
->ruleWithConfiguration(TypedPropertyRector::class, [
115+
->ruleWithConfiguration(TypedPropertyFromAssignsRector::class, [
116116
// Set to false if you use in libraries, or it does create breaking changes.
117-
TypedPropertyRector::INLINE_PUBLIC => true,
117+
TypedPropertyFromAssignsRector::INLINE_PUBLIC => false,
118118
]);
119119
};

0 commit comments

Comments
 (0)