Skip to content

Commit 8485673

Browse files
committed
release PHP 7.2 downgraded
1 parent a23355d commit 8485673

File tree

517 files changed

+654
-8293
lines changed

Some content is hidden

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

517 files changed

+654
-8293
lines changed

.editorconfig

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

build/rector-downgrade-php-72.php

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

build/target-repository/.github/FUNDING.yml

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

build/target-repository/composer.json

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

build/target-repository/phpstan-for-tests.neon

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

build/target-repository/tests/SomeClass.php.inc

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

composer.json

Lines changed: 3 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -4,60 +4,21 @@
44
"description": "Set of Symplify rules for PHPStan",
55
"license": "MIT",
66
"require": {
7-
"php": ">=8.1",
7+
"php": "^7.2|^8.0",
88
"nette/utils": "^3.2.9 || ^4.0",
9-
"webmozart/assert": "^1.11",
10-
"phpstan/phpstan": "^1.11",
11-
"symplify/rule-doc-generator-contracts": "^11.1.26"
12-
},
13-
"require-dev": {
14-
"nikic/php-parser": "^4.19",
15-
"symplify/phpstan-extensions": "^11.4",
16-
"symplify/rule-doc-generator": "^12.0",
17-
"phpunit/phpunit": "^10.5",
18-
"symfony/framework-bundle": "6.1.*",
19-
"rector/rector": "^1.1",
20-
"symplify/easy-coding-standard": "^12.1",
21-
"phpstan/extension-installer": "^1.3",
22-
"tomasvotruba/class-leak": "^0.2"
9+
"phpstan/phpstan": "^1.10.30",
10+
"webmozart/assert": "^1.11"
2311
},
2412
"autoload": {
2513
"psr-4": {
2614
"Symplify\\PHPStanRules\\": "src"
2715
}
2816
},
29-
"autoload-dev": {
30-
"psr-4": {
31-
"Symplify\\PHPStanRules\\Tests\\": "tests"
32-
},
33-
"classmap": [
34-
"stubs"
35-
],
36-
"files": [
37-
"tests/Rules/Rector/PhpUpgradeImplementsMinPhpVersionInterfaceRule/Fixture/SomePhpFeatureRector.php",
38-
"vendor/rector/rector/src/Contract/Rector/RectorInterface.php",
39-
"vendor/rector/rector/src/Contract/Rector/ConfigurableRectorInterface.php",
40-
"vendor/rector/rector/vendor/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeSetList.php"
41-
]
42-
},
4317
"extra": {
4418
"phpstan": {
4519
"includes": [
4620
"config/services/services.neon"
4721
]
4822
}
49-
},
50-
"config": {
51-
"platform-check": false,
52-
"allow-plugins": {
53-
"phpstan/extension-installer": true
54-
}
55-
},
56-
"scripts": {
57-
"check-cs": "vendor/bin/ecs check --ansi",
58-
"fix-cs": "vendor/bin/ecs check --fix --ansi",
59-
"phpstan": "vendor/bin/phpstan analyse --ansi --error-format symplify",
60-
"rector": "vendor/bin/rector process --dry-run --ansi",
61-
"docs": "vendor/bin/rule-doc-generator generate src --output-file docs/rules_overview.md --ansi"
6223
}
6324
}

ecs.php

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

full-tool-build.sh

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

phpstan.neon

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

phpunit.xml

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

rector.php

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

src/Collector/ClassMethod/PublicClassMethodParamTypesCollector.php

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,26 @@
1818
*/
1919
final class PublicClassMethodParamTypesCollector implements Collector
2020
{
21-
public function __construct(
22-
private readonly ApiDocStmtAnalyzer $apiDocStmtAnalyzer,
23-
private readonly PublicClassMethodMatcher $publicClassMethodMatcher,
24-
private readonly CollectorMetadataPrinter $collectorMetadataPrinter
25-
) {
21+
/**
22+
* @readonly
23+
* @var \Symplify\PHPStanRules\PhpDoc\ApiDocStmtAnalyzer
24+
*/
25+
private $apiDocStmtAnalyzer;
26+
/**
27+
* @readonly
28+
* @var \Symplify\PHPStanRules\Matcher\Collector\PublicClassMethodMatcher
29+
*/
30+
private $publicClassMethodMatcher;
31+
/**
32+
* @readonly
33+
* @var \Symplify\PHPStanRules\Printer\CollectorMetadataPrinter
34+
*/
35+
private $collectorMetadataPrinter;
36+
public function __construct(ApiDocStmtAnalyzer $apiDocStmtAnalyzer, PublicClassMethodMatcher $publicClassMethodMatcher, CollectorMetadataPrinter $collectorMetadataPrinter)
37+
{
38+
$this->apiDocStmtAnalyzer = $apiDocStmtAnalyzer;
39+
$this->publicClassMethodMatcher = $publicClassMethodMatcher;
40+
$this->collectorMetadataPrinter = $collectorMetadataPrinter;
2641
}
2742

2843
public function getNodeType(): string

src/Collector/MethodCall/MethodCallArgTypesCollector.php

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,21 @@
1717
*/
1818
final class MethodCallArgTypesCollector implements Collector
1919
{
20-
public function __construct(
21-
private readonly ClassMethodCallReferenceResolver $classMethodCallReferenceResolver,
22-
private readonly CollectorMetadataPrinter $collectorMetadataPrinter,
23-
) {
20+
/**
21+
* @readonly
22+
* @var \Symplify\PHPStanRules\Matcher\ClassMethodCallReferenceResolver
23+
*/
24+
private $classMethodCallReferenceResolver;
25+
/**
26+
* @readonly
27+
* @var \Symplify\PHPStanRules\Printer\CollectorMetadataPrinter
28+
*/
29+
private $collectorMetadataPrinter;
30+
public function __construct(ClassMethodCallReferenceResolver $classMethodCallReferenceResolver, CollectorMetadataPrinter $collectorMetadataPrinter)
31+
{
32+
$this->classMethodCallReferenceResolver = $classMethodCallReferenceResolver;
33+
$this->collectorMetadataPrinter = $collectorMetadataPrinter;
2434
}
25-
2635
public function getNodeType(): string
2736
{
2837
return MethodCall::class;

src/Collector/MethodCallableNode/MethodCallableCollector.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,15 @@
2121
*/
2222
final class MethodCallableCollector implements Collector
2323
{
24-
public function __construct(
25-
private readonly ClassMethodCallReferenceResolver $classMethodCallReferenceResolver,
26-
) {
24+
/**
25+
* @readonly
26+
* @var \Symplify\PHPStanRules\Matcher\ClassMethodCallReferenceResolver
27+
*/
28+
private $classMethodCallReferenceResolver;
29+
public function __construct(ClassMethodCallReferenceResolver $classMethodCallReferenceResolver)
30+
{
31+
$this->classMethodCallReferenceResolver = $classMethodCallReferenceResolver;
2732
}
28-
2933
public function getNodeType(): string
3034
{
3135
return MethodCallableNode::class;

src/Composer/ClassNamespaceMatcher.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@
1010

1111
final class ClassNamespaceMatcher
1212
{
13-
public function __construct(
14-
private readonly DirectoryChecker $directoryChecker
15-
) {
13+
/**
14+
* @readonly
15+
* @var \Symplify\PHPStanRules\Location\DirectoryChecker
16+
*/
17+
private $directoryChecker;
18+
public function __construct(DirectoryChecker $directoryChecker)
19+
{
20+
$this->directoryChecker = $directoryChecker;
1621
}
1722

1823
/**
@@ -54,7 +59,7 @@ public function matchPossibleDirectoriesForClass(
5459
* @param string|string[] $items
5560
* @return string[]
5661
*/
57-
private function standardizeToArray(string | array $items): array
62+
private function standardizeToArray($items): array
5863
{
5964
if (! is_array($items)) {
6065
return [$items];

0 commit comments

Comments
 (0)