Skip to content

Commit 376b05c

Browse files
Upgrade Rector
1 parent ab9942c commit 376b05c

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
2626
],
2727
"require": {
2828
"php": "^8.4.0",
29-
"illuminate/database": "^11.32|^12.0",
30-
"illuminate/support": "^11.32|^12.0"
29+
"illuminate/database": "^11.32|^12.40.2",
30+
"illuminate/support": "^11.32|^12.40.2"
3131
},
3232
"require-dev": {
33-
"friendsofphp/php-cs-fixer": "^3.68.5",
34-
"laravel/pint": "^1.20",
35-
"laravel/serializable-closure": "^2.0",
36-
"phpunit/phpunit": "^11.5.7",
37-
"rector/rector": "^1.2.10",
33+
"friendsofphp/php-cs-fixer": "^3.90.0",
34+
"laravel/pint": "^1.26",
35+
"laravel/serializable-closure": "^2.0.7",
36+
"phpunit/phpunit": "^11.5.44",
37+
"rector/rector": "^2.2.9",
3838
"roave/security-advisories": "dev-latest"
3939
},
4040
"autoload": {

rector.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
use Rector\EarlyReturn\Rector\If_\ChangeOrIfContinueToMultiContinueRector;
99
use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector;
1010
use Rector\Php81\Rector\Array_\FirstClassCallableRector;
11-
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
12-
use Rector\Php82\Rector\Class_\ReadOnlyClassRector;
1311
use Rector\PHPUnit\Set\PHPUnitSetList;
1412

1513
return RectorConfig::configure()
@@ -29,18 +27,13 @@
2927
typeDeclarations: true,
3028
privatization: true,
3129
earlyReturn: true,
32-
strictBooleans: true,
3330
)
3431
->withSets([
3532
PHPUnitSetList::PHPUNIT_80,
3633
PHPUnitSetList::PHPUNIT_90,
3734
PHPUnitSetList::PHPUNIT_100,
3835
PHPUnitSetList::PHPUNIT_110,
3936
])
40-
->withRules([
41-
ReadOnlyClassRector::class,
42-
ReadOnlyPropertyRector::class,
43-
])
4437
->withSkip([
4538
CatchExceptionNameMatchingTypeRector::class,
4639
ChangeOrIfContinueToMultiContinueRector::class,

0 commit comments

Comments
 (0)