Skip to content

Commit e522050

Browse files
authored
Merge pull request #1002 from datamweb/upgrad-rector
chore(deps-dev): update rector/rector requirement from 0.18.13 to 0.19.2
2 parents 05d4abc + 1814804 commit e522050

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"mockery/mockery": "^1.0",
3838
"phpstan/extension-installer": "^1.3",
3939
"phpstan/phpstan-strict-rules": "^1.5",
40-
"rector/rector": "0.18.13"
40+
"rector/rector": "0.19.2"
4141
},
4242
"provide": {
4343
"codeigniter4/authentication-implementation": "1.0"

rector.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,10 @@
2828
use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector;
2929
use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector;
3030
use Rector\Config\RectorConfig;
31-
use Rector\Core\ValueObject\PhpVersion;
3231
use Rector\DeadCode\Rector\Cast\RecastingRemovalRector;
3332
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector;
3433
use Rector\DeadCode\Rector\If_\UnwrapFutureCompatibleIfPhpVersionRector;
3534
use Rector\DeadCode\Rector\Property\RemoveUnusedPrivatePropertyRector;
36-
use Rector\DeadCode\Rector\StmtsAwareInterface\RemoveJustPropertyFetchForAssignRector;
3735
use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector;
3836
use Rector\EarlyReturn\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector;
3937
use Rector\EarlyReturn\Rector\If_\RemoveAlwaysElseRector;
@@ -46,6 +44,7 @@
4644
use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector;
4745
use Rector\Set\ValueObject\LevelSetList;
4846
use Rector\Set\ValueObject\SetList;
47+
use Rector\ValueObject\PhpVersion;
4948

5049
return static function (RectorConfig $rectorConfig): void {
5150
$rectorConfig->sets([
@@ -99,11 +98,6 @@
9998
// May load view files directly when detecting classes
10099
StringClassNameToClassConstantRector::class,
101100

102-
// See https://github.com/codeigniter4/shield/issues/228
103-
RemoveJustPropertyFetchForAssignRector::class => [
104-
__DIR__ . '/src/Models/UserModel.php',
105-
],
106-
107101
// Ignore tests that use CodeIgniter::CI_VERSION
108102
UnwrapFutureCompatibleIfPhpVersionRector::class => [
109103
__DIR__ . '/src/Test/MockInputOutput.php',

0 commit comments

Comments
 (0)