Skip to content

Commit 238f06f

Browse files
committed
release PHP 7.2 downgraded 0.41.0
1 parent 4d9188b commit 238f06f

File tree

391 files changed

+880
-8812
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

391 files changed

+880
-8812
lines changed

.github/workflows/code_analysis.yaml

Lines changed: 0 additions & 48 deletions
This file was deleted.

.github/workflows/downgraded_release.yaml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/tests.yaml

Lines changed: 0 additions & 28 deletions
This file was deleted.

build/composer-php-72.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

build/rector-downgrade-php-72.php

Lines changed: 0 additions & 10 deletions
This file was deleted.

composer.json

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4,50 +4,17 @@
44
"license": "MIT",
55
"description": "Rector upgrades rules for Laravel Framework",
66
"require": {
7-
"php": ">=8.2",
7+
"php": "^7.2 || ^8.0",
88
"rector/rector": "^0.19.0"
99
},
10-
"require-dev": {
11-
"phpunit/phpunit": "^10.0",
12-
"phpstan/phpstan": "^1.8.2",
13-
"symplify/phpstan-rules": "^12.4",
14-
"symplify/phpstan-extensions": "^11.0",
15-
"symplify/rule-doc-generator": "^12.1",
16-
"phpstan/extension-installer": "^1.1",
17-
"phpstan/phpstan-webmozart-assert": "^1.1",
18-
"phpstan/phpstan-strict-rules": "^1.2",
19-
"tightenco/duster": "^2.7"
20-
},
2110
"autoload": {
2211
"psr-4": {
2312
"RectorLaravel\\": "src"
2413
}
2514
},
2615
"autoload-dev": {
27-
"psr-4": {
28-
"RectorLaravel\\Tests\\": "tests"
29-
},
3016
"classmap": ["stubs"]
3117
},
32-
"scripts": {
33-
"phpstan": "vendor/bin/phpstan analyse --ansi --error-format symplify",
34-
"check-cs": "vendor/bin/duster lint",
35-
"fix-cs": "vendor/bin/duster fix",
36-
"lint": "vendor/bin/duster lint",
37-
"fix": "vendor/bin/duster fix",
38-
"rector-dry-run": "vendor/bin/rector process --dry-run --ansi",
39-
"rector": "vendor/bin/rector process --ansi",
40-
"docs": [
41-
"vendor/bin/rule-doc-generator generate src --output-file docs/rector_rules_overview.md --ansi"
42-
]
43-
},
4418
"minimum-stability": "dev",
45-
"prefer-stable": true,
46-
"config": {
47-
"allow-plugins": {
48-
"rector/extension-installer": true,
49-
"phpstan/extension-installer": true,
50-
"cweagans/composer-patches": false
51-
}
52-
}
19+
"prefer-stable": true
5320
}

config/sets/laravel-array-str-functions-to-static-call.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@
6262
new FuncCallToStaticCall('studly_case', 'Illuminate\Support\Str', 'studly'),
6363
new FuncCallToStaticCall('title_case', 'Illuminate\Support\Str', 'title'),
6464
],
65-
fn ($function) => ! in_array($function->getOldFuncName(), $internalFunctions, true)
65+
function ($function) use ($internalFunctions) {
66+
return ! in_array($function->getOldFuncName(), $internalFunctions, true);
67+
}
6668
)
6769
);
6870
};

config/sets/laravel90.php

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,12 @@
4141

4242
// https://github.com/laravel/framework/commit/e095ac0e928b5620f33c9b60816fde5ece867d32
4343
$rectorConfig
44-
->ruleWithConfiguration(ArgumentAdderRector::class, [new ArgumentAdder(
45-
'Illuminate\Database\Eloquent\Model',
46-
'touch',
47-
0,
48-
'attribute',
49-
),
44+
->ruleWithConfiguration(ArgumentAdderRector::class, [new ArgumentAdder('Illuminate\Database\Eloquent\Model', 'touch', 0, 'attribute'),
5045
]);
5146

5247
// https://github.com/laravel/framework/commit/6daecf43dd931dc503e410645ff4a7d611e3371f
5348
$rectorConfig
54-
->ruleWithConfiguration(ArgumentAdderRector::class, [new ArgumentAdder(
55-
'Illuminate\Queue\Failed\FailedJobProviderInterface',
56-
'flush',
57-
0,
58-
'hours',
59-
),
49+
->ruleWithConfiguration(ArgumentAdderRector::class, [new ArgumentAdder('Illuminate\Queue\Failed\FailedJobProviderInterface', 'flush', 0, 'hours'),
6050
]);
6151

6252
// https://github.com/laravel/framework/commit/84c78b9f5f3dad58f92161069e6482f7267ffdb6

phpstan.neon

Lines changed: 0 additions & 31 deletions
This file was deleted.

phpunit.xml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)