Skip to content

Commit 807840c

Browse files
committed
release PHP 7.4 downgraded 2.2.0
1 parent 6e9bc85 commit 807840c

File tree

985 files changed

+1910
-21961
lines changed

Some content is hidden

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

985 files changed

+1910
-21961
lines changed

.github/dependabot.yml

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

.github/workflows/code_analysis.yaml

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

.github/workflows/downgraded_release.yaml

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

.github/workflows/tests.yaml

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

build/composer-php-74.json

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

build/rector-downgrade-php-74.php

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

composer.json

Lines changed: 5 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -4,66 +4,18 @@
44
"license": "MIT",
55
"description": "Rector upgrades rules for Laravel Framework",
66
"require": {
7-
"php": ">=8.3",
8-
"rector/rector": "^2.3.0",
9-
"webmozart/assert": "^1.11 || ^2.0",
10-
"symplify/rule-doc-generator-contracts": "^11.2"
11-
},
12-
"require-dev": {
13-
"nikic/php-parser": "^5.6",
14-
"phpstan/extension-installer": "^1.3",
15-
"phpstan/phpstan": "^2.0",
16-
"phpstan/phpstan-deprecation-rules": "^2.0",
17-
"phpstan/phpstan-strict-rules": "^2.0",
18-
"phpstan/phpstan-webmozart-assert": "^2.0",
19-
"phpunit/phpunit": "^10.5",
20-
"symplify/rule-doc-generator": "^12.2",
21-
"tightenco/duster": "^3.1",
22-
"nette/utils": "^4.0",
23-
"tracy/tracy": "^2.10"
7+
"php": "^7.4 || ^8.0",
8+
"rector/rector": "^2.2.7",
9+
"webmozart/assert": "^1.11 || ^2.0"
2410
},
2511
"autoload": {
2612
"psr-4": {
2713
"RectorLaravel\\": "src"
2814
}
2915
},
3016
"autoload-dev": {
31-
"psr-4": {
32-
"RectorLaravel\\Tests\\": "tests",
33-
"RectorLaravel\\Commands\\": "commands"
34-
},
35-
"classmap": ["stubs"],
36-
"files": ["tests/debug_functions.php"]
37-
},
38-
"scripts": {
39-
"phpstan": "vendor/bin/phpstan analyse --ansi",
40-
"test": "vendor/bin/phpunit tests",
41-
"lint": "vendor/bin/duster lint",
42-
"fix": "vendor/bin/duster fix",
43-
"rector-dry-run": "vendor/bin/rector process --dry-run --ansi",
44-
"rector": "vendor/bin/rector process --ansi",
45-
"docs": "vendor/bin/rule-doc-generator generate src --output-file docs/rector_rules_overview.md --ansi",
46-
"qa": [
47-
"@rector",
48-
"@fix",
49-
"@phpstan",
50-
"@docs",
51-
"@test"
52-
],
53-
"make:rule": "php commands/make-rule.php"
17+
"classmap": ["stubs"]
5418
},
5519
"minimum-stability": "dev",
56-
"prefer-stable": true,
57-
"config": {
58-
"allow-plugins": {
59-
"rector/extension-installer": true,
60-
"phpstan/extension-installer": true,
61-
"cweagans/composer-patches": false
62-
}
63-
},
64-
"extra": {
65-
"rector": {
66-
"includes": ["config/config.php"]
67-
}
68-
}
20+
"prefer-stable": true
6921
}

phpstan.neon

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

phpunit.xml

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

src/NodeAnalyzer/ApplicationAnalyzer.php

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,24 @@
77

88
class ApplicationAnalyzer
99
{
10+
/**
11+
* @var class-string
12+
*/
13+
private string $applicationClass = 'Illuminate\Foundation\Application';
1014
private ?string $version = null;
1115

1216
/**
1317
* @param class-string $applicationClass
1418
*/
15-
public function __construct(
16-
private string $applicationClass = 'Illuminate\Foundation\Application',
17-
) {}
19+
public function __construct(string $applicationClass = 'Illuminate\Foundation\Application')
20+
{
21+
$this->applicationClass = $applicationClass;
22+
}
1823

19-
public function setVersion(?string $version): static
24+
/**
25+
* @return static
26+
*/
27+
public function setVersion(?string $version)
2028
{
2129
$this->version = $version;
2230

@@ -27,7 +35,7 @@ public function setVersion(?string $version): static
2735
* @param class-string $applicationClass
2836
* @return $this
2937
*/
30-
public function setApplicationClass(string $applicationClass): static
38+
public function setApplicationClass(string $applicationClass)
3139
{
3240
$this->applicationClass = $applicationClass;
3341

0 commit comments

Comments
 (0)