Skip to content

Commit cfd7f10

Browse files
authored
Merge pull request #9774 from codeigniter4/dependabot/composer/rector/rector-2.2.6
chore(deps-dev): update rector/rector requirement from 2.2.5 to 2.2.6
2 parents 03a9337 + f1ec131 commit cfd7f10

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"phpunit/phpcov": "^9.0.2 || ^10.0",
2929
"phpunit/phpunit": "^10.5.16 || ^11.2",
3030
"predis/predis": "^3.0",
31-
"rector/rector": "2.2.5",
31+
"rector/rector": "2.2.6",
3232
"shipmonk/phpstan-baseline-per-identifier": "^2.0"
3333
},
3434
"replace": {

rector.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
use Rector\PHPUnit\CodeQuality\Rector\Class_\RemoveDataProviderParamKeysRector;
3838
use Rector\PHPUnit\CodeQuality\Rector\Class_\YieldDataProviderRector;
3939
use Rector\PHPUnit\CodeQuality\Rector\FuncCall\AssertFuncCallToPHPUnitAssertRector;
40+
use Rector\PHPUnit\CodeQuality\Rector\StmtsAwareInterface\DeclareStrictTypesTestsRector;
41+
use Rector\Privatization\Rector\Class_\FinalizeTestCaseClassRector;
4042
use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector;
4143
use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector;
4244
use Rector\TypeDeclaration\Rector\ArrowFunction\AddArrowFunctionReturnTypeRector;
@@ -178,6 +180,13 @@
178180
// use $this inside static closure
179181
__DIR__ . '/tests/system/AutoReview/FrameworkCodeTest.php',
180182
],
183+
184+
// some tests extended by other tests
185+
FinalizeTestCaseClassRector::class,
186+
187+
DeclareStrictTypesTestsRector::class => [
188+
__DIR__ . '/tests/system/Debug/ExceptionsTest.php',
189+
],
181190
])
182191
// auto import fully qualified class names
183192
->withImportNames(removeUnusedImports: true)

0 commit comments

Comments
 (0)