Skip to content

Commit 06b5c1d

Browse files
authored
Bump Rector requirement to ^2.2.7 (#416)
* Bump Rector requirement to ^2.2.7 * rectify
1 parent 8396546 commit 06b5c1d

File tree

5 files changed

+4
-6
lines changed

5 files changed

+4
-6
lines changed

build/composer-php-74.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "Rector upgrades rules for Laravel Framework",
66
"require": {
77
"php": "^7.4 || ^8.0",
8-
"rector/rector": "^2.0"
8+
"rector/rector": "^2.2.7"
99
},
1010
"autoload": {
1111
"psr-4": {

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "Rector upgrades rules for Laravel Framework",
66
"require": {
77
"php": ">=8.3",
8-
"rector/rector": "^2.1.3",
8+
"rector/rector": "^2.2.7",
99
"webmozart/assert": "^1.11",
1010
"symplify/rule-doc-generator-contracts": "^11.2"
1111
},

config/sets/laravel60.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,6 @@
7070

7171
$rectorConfig
7272
->ruleWithConfiguration(ArgumentAdderRector::class, [ // https://github.com/laravel/framework/commit/6c1e014943a508afb2c10869c3175f7783a004e1
73-
new ArgumentAdder('Illuminate\Database\Capsule\Manager', 'table', 1, 'as', null),
73+
new ArgumentAdder('Illuminate\Database\Capsule\Manager', 'table', 1, 'as'),
7474
]);
7575
};

config/sets/laravel70.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@
5151
'Illuminate\Contracts\Routing\UrlRoutable',
5252
'resolveRouteBinding',
5353
1,
54-
'field',
55-
null
54+
'field'
5655
),
5756
]);
5857

src/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ private function refactorInterpolatedString(InterpolatedString $interpolatedStri
137137
return array_reduce(
138138
$parts,
139139
fn (?Expr $carry, Expr $part) => $carry === null ? $part : new Concat($carry, $part),
140-
null,
141140
);
142141
}
143142

0 commit comments

Comments
 (0)