Skip to content

Commit 2f1e9c3

Browse files
committed
release PHP 7.4 downgraded 2.1.3
1 parent ca9c906 commit 2f1e9c3

File tree

801 files changed

+1767
-18497
lines changed

Some content is hidden

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

801 files changed

+1767
-18497
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 & 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: 4 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -4,61 +4,18 @@
44
"license": "MIT",
55
"description": "Rector upgrades rules for Laravel Framework",
66
"require": {
7-
"php": ">=8.3",
7+
"php": "^7.4 || ^8.0",
88
"rector/rector": "^2.2.7",
9-
"webmozart/assert": "^1.11",
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"
9+
"webmozart/assert": "^1.11"
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-
}
20+
"prefer-stable": true
6421
}

phpstan.neon

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

phpunit.xml

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

src/NodeAnalyzer/ApplicationAnalyzer.php

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

88
class ApplicationAnalyzer
99
{
10+
private string $applicationClass = 'Illuminate\Foundation\Application';
1011
private ?string $version = null;
1112

12-
public function __construct(
13-
private string $applicationClass = 'Illuminate\Foundation\Application',
14-
) {}
13+
public function __construct(string $applicationClass = 'Illuminate\Foundation\Application')
14+
{
15+
$this->applicationClass = $applicationClass;
16+
}
1517

16-
public function setVersion(?string $version): static
18+
/**
19+
* @return static
20+
*/
21+
public function setVersion(?string $version)
1722
{
1823
$this->version = $version;
1924

2025
return $this;
2126
}
2227

23-
public function setApplicationClass(string $applicationClass): static
28+
/**
29+
* @return static
30+
*/
31+
public function setApplicationClass(string $applicationClass)
2432
{
2533
$this->applicationClass = $applicationClass;
2634

src/NodeAnalyzer/CallUserFuncAnalyzer.php

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,21 @@
1212
use Rector\NodeTypeResolver\NodeTypeResolver;
1313
use RectorLaravel\ValueObject\ForwardingCall;
1414

15-
final readonly class CallUserFuncAnalyzer
15+
final class CallUserFuncAnalyzer
1616
{
17-
public function __construct(
18-
private NodeNameResolver $nodeNameResolver,
19-
private NodeTypeResolver $nodeTypeResolver,
20-
) {}
17+
/**
18+
* @readonly
19+
*/
20+
private NodeNameResolver $nodeNameResolver;
21+
/**
22+
* @readonly
23+
*/
24+
private NodeTypeResolver $nodeTypeResolver;
25+
public function __construct(NodeNameResolver $nodeNameResolver, NodeTypeResolver $nodeTypeResolver)
26+
{
27+
$this->nodeNameResolver = $nodeNameResolver;
28+
$this->nodeTypeResolver = $nodeTypeResolver;
29+
}
2130

2231
public function isCallUserFuncCall(FuncCall $funcCall): bool
2332
{

0 commit comments

Comments
 (0)