Skip to content

Commit 47d1968

Browse files
authored
Merge pull request #58 from codeigniter4/dependabot/composer/rector/rector-0.15.0
chore(deps-dev): update rector/rector requirement from 0.14.8 to 0.15.0
2 parents da5290e + 1358f64 commit 47d1968

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
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

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"require-dev": {
4040
"codeigniter4/framework": "^4.1",
4141
"icanhazstring/composer-unused": "^0.8.2",
42-
"rector/rector": "0.14.8"
42+
"rector/rector": "0.15.0"
4343
},
4444
"minimum-stability": "dev",
4545
"prefer-stable": true,

rector.php

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

3-
use Rector\Config\RectorConfig;
43
use Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector;
54
use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector;
65
use Rector\CodeQuality\Rector\For_\ForToForeachRector;
@@ -18,6 +17,7 @@
1817
use Rector\CodingStyle\Rector\ClassMethod\FuncGetArgsToVariadicParamRector;
1918
use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector;
2019
use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector;
20+
use Rector\Config\RectorConfig;
2121
use Rector\Core\ValueObject\PhpVersion;
2222
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector;
2323
use Rector\DeadCode\Rector\MethodCall\RemoveEmptyMethodCallRector;
@@ -29,11 +29,11 @@
2929
use Rector\Php56\Rector\FunctionLike\AddDefaultValueForUndefinedVariableRector;
3030
use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector;
3131
use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector;
32-
use Rector\Php74\Rector\Property\TypedPropertyRector;
3332
use Rector\PHPUnit\Set\PHPUnitSetList;
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]);
@@ -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 => true,
118118
]);
119119
};

src/Template/rector.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
use Rector\Php56\Rector\FunctionLike\AddDefaultValueForUndefinedVariableRector;
3030
use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector;
3131
use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector;
32-
use Rector\Php74\Rector\Property\TypedPropertyRector;
3332
use Rector\PHPUnit\Set\PHPUnitLevelSetList;
3433
use Rector\PHPUnit\Set\PHPUnitSetList;
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]);
@@ -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)