Skip to content

Commit 4fc7078

Browse files
authored
Merge pull request #6295 from codeigniter4/dependabot/composer/rector/rector-0.13.9
chore(deps-dev): update rector/rector requirement from 0.13.8 to 0.13.9
2 parents cee5528 + 3d71f97 commit 4fc7078

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"phpstan/phpstan": "^1.7.1",
2525
"phpunit/phpunit": "^9.1",
2626
"predis/predis": "^1.1 || ^2.0",
27-
"rector/rector": "0.13.8"
27+
"rector/rector": "0.13.9"
2828
},
2929
"suggest": {
3030
"ext-fileinfo": "Improves mime type detection for files"

rector.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@
2929
use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector;
3030
use Rector\Config\RectorConfig;
3131
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPrivateMethodRector;
32+
use Rector\DeadCode\Rector\If_\RemoveAlwaysTrueIfConditionRector;
3233
use Rector\DeadCode\Rector\If_\UnwrapFutureCompatibleIfPhpVersionRector;
3334
use Rector\DeadCode\Rector\MethodCall\RemoveEmptyMethodCallRector;
35+
use Rector\DeadCode\Rector\Plus\RemoveDeadZeroAndOneOperationRector;
3436
use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector;
3537
use Rector\EarlyReturn\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector;
3638
use Rector\EarlyReturn\Rector\If_\RemoveAlwaysElseRector;
@@ -71,6 +73,8 @@
7173
__DIR__ . '/system/Test/bootstrap.php',
7274
]);
7375

76+
$rectorConfig->phpstanConfig(__DIR__ . '/phpstan.neon.dist');
77+
7478
// is there a file you need to skip?
7579
$rectorConfig->skip([
7680
__DIR__ . '/app/Views',
@@ -127,6 +131,12 @@
127131
GetMockBuilderGetMockToCreateMockRector::class => [
128132
__DIR__ . '/tests/system/Email/EmailTest.php',
129133
],
134+
135+
// buggy on read based on @var on property
136+
RemoveAlwaysTrueIfConditionRector::class,
137+
138+
// buggy on string * int
139+
RemoveDeadZeroAndOneOperationRector::class,
130140
]);
131141

132142
// auto import fully qualified class names

0 commit comments

Comments
 (0)