Skip to content

Commit 45454ff

Browse files
authored
chore: Bump Rector to 2.8.1 and clean up deprecated rules registration (#10666)
1 parent 699fc2f commit 45454ff

2 files changed

Lines changed: 1 addition & 12 deletions

File tree

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"phpunit/phpcov": "^9.0.2 || ^10.0",
3030
"phpunit/phpunit": "^10.5.16 || ^11.2",
3131
"predis/predis": "^3.0",
32-
"rector/rector": "2.7.0",
32+
"rector/rector": "2.8.1",
3333
"shipmonk/phpstan-baseline-per-identifier": "^2.0"
3434
},
3535
"replace": {

‎rector.php‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
use Rector\TypeDeclaration\Rector\Closure\ClosureReturnTypeRector;
4040
use Rector\TypeDeclaration\Rector\Function_\AddFunctionVoidReturnTypeWhereNoReturnRector;
4141
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector;
42-
use Rector\TypeDeclaration\Rector\StmtsAwareInterface\DeclareStrictTypesRector;
4342
use Rector\TypeDeclaration\Rector\StmtsAwareInterface\SafeDeclareStrictTypesRector;
4443
use Utils\Rector\PassStrictParameterToFunctionParameterRector;
4544
use Utils\Rector\RemoveErrorSuppressInTryCatchStmtsRector;
@@ -110,15 +109,6 @@
110109
__DIR__ . '/tests/_support/Entity/CustomUser.php',
111110
],
112111

113-
DeclareStrictTypesRector::class => [
114-
__DIR__ . '/app',
115-
__DIR__ . '/system/CodeIgniter.php',
116-
__DIR__ . '/system/Config/BaseConfig.php',
117-
__DIR__ . '/system/Test/ControllerTestTrait.php',
118-
__DIR__ . '/system/View/Parser.php',
119-
__DIR__ . '/tests/system/Debug/ExceptionsTest.php',
120-
],
121-
122112
// use mt_rand instead of random_int on purpose on non-cryptographically random
123113
RandomFunctionRector::class,
124114

@@ -172,7 +162,6 @@
172162
// auto import fully qualified class names
173163
->withImportNames()
174164
->withRules([
175-
DeclareStrictTypesRector::class,
176165
UnderscoreToCamelCaseVariableNameRector::class,
177166
PassStrictParameterToFunctionParameterRector::class,
178167
RemoveErrorSuppressInTryCatchStmtsRector::class,

0 commit comments

Comments
 (0)