Skip to content

Commit

Permalink
release PHP 7.2 downgraded
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed May 25, 2024
1 parent af09e51 commit 14f5061
Show file tree
Hide file tree
Showing 480 changed files with 630 additions and 7,762 deletions.
9 changes: 0 additions & 9 deletions .editorconfig

This file was deleted.

File renamed without changes.
23 changes: 0 additions & 23 deletions build/rector-downgrade-php-72.php

This file was deleted.

3 changes: 0 additions & 3 deletions build/target-repository/.github/FUNDING.yml

This file was deleted.

24 changes: 0 additions & 24 deletions build/target-repository/composer.json

This file was deleted.

9 changes: 0 additions & 9 deletions build/target-repository/phpstan-for-tests.neon

This file was deleted.

13 changes: 0 additions & 13 deletions build/target-repository/tests/SomeClass.php.inc

This file was deleted.

45 changes: 3 additions & 42 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,60 +4,21 @@
"description": "Set of Symplify rules for PHPStan",
"license": "MIT",
"require": {
"php": ">=8.1",
"php": "^7.2|^8.0",
"nette/utils": "^3.2.9 || ^4.0",
"webmozart/assert": "^1.11",
"phpstan/phpstan": "^1.11",
"symplify/rule-doc-generator-contracts": "^11.1.26"
},
"require-dev": {
"nikic/php-parser": "^4.19",
"symplify/phpstan-extensions": "^11.4",
"symplify/rule-doc-generator": "^12.0",
"phpunit/phpunit": "^10.5",
"symfony/framework-bundle": "6.1.*",
"rector/rector": "^1.1",
"symplify/easy-coding-standard": "^12.1",
"phpstan/extension-installer": "^1.3",
"tomasvotruba/class-leak": "^0.2"
"phpstan/phpstan": "^1.10.30",
"webmozart/assert": "^1.11"
},
"autoload": {
"psr-4": {
"Symplify\\PHPStanRules\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Symplify\\PHPStanRules\\Tests\\": "tests"
},
"classmap": [
"stubs"
],
"files": [
"tests/Rules/Rector/PhpUpgradeImplementsMinPhpVersionInterfaceRule/Fixture/SomePhpFeatureRector.php",
"vendor/rector/rector/src/Contract/Rector/RectorInterface.php",
"vendor/rector/rector/src/Contract/Rector/ConfigurableRectorInterface.php",
"vendor/rector/rector/vendor/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeSetList.php"
]
},
"extra": {
"phpstan": {
"includes": [
"config/services/services.neon"
]
}
},
"config": {
"platform-check": false,
"allow-plugins": {
"phpstan/extension-installer": true
}
},
"scripts": {
"check-cs": "vendor/bin/ecs check --ansi",
"fix-cs": "vendor/bin/ecs check --fix --ansi",
"phpstan": "vendor/bin/phpstan analyse --ansi --error-format symplify",
"rector": "vendor/bin/rector process --dry-run --ansi",
"docs": "vendor/bin/rule-doc-generator generate src --output-file docs/rules_overview.md --ansi"
}
}
18 changes: 0 additions & 18 deletions ecs.php

This file was deleted.

15 changes: 0 additions & 15 deletions full-tool-build.sh

This file was deleted.

54 changes: 0 additions & 54 deletions phpstan.neon

This file was deleted.

7 changes: 0 additions & 7 deletions phpunit.xml

This file was deleted.

41 changes: 0 additions & 41 deletions rector.php

This file was deleted.

25 changes: 20 additions & 5 deletions src/Collector/ClassMethod/PublicClassMethodParamTypesCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,26 @@
*/
final class PublicClassMethodParamTypesCollector implements Collector
{
public function __construct(
private readonly ApiDocStmtAnalyzer $apiDocStmtAnalyzer,
private readonly PublicClassMethodMatcher $publicClassMethodMatcher,
private readonly CollectorMetadataPrinter $collectorMetadataPrinter
) {
/**
* @readonly
* @var \Symplify\PHPStanRules\PhpDoc\ApiDocStmtAnalyzer
*/
private $apiDocStmtAnalyzer;
/**
* @readonly
* @var \Symplify\PHPStanRules\Matcher\Collector\PublicClassMethodMatcher
*/
private $publicClassMethodMatcher;
/**
* @readonly
* @var \Symplify\PHPStanRules\Printer\CollectorMetadataPrinter
*/
private $collectorMetadataPrinter;
public function __construct(ApiDocStmtAnalyzer $apiDocStmtAnalyzer, PublicClassMethodMatcher $publicClassMethodMatcher, CollectorMetadataPrinter $collectorMetadataPrinter)
{
$this->apiDocStmtAnalyzer = $apiDocStmtAnalyzer;
$this->publicClassMethodMatcher = $publicClassMethodMatcher;
$this->collectorMetadataPrinter = $collectorMetadataPrinter;
}

public function getNodeType(): string
Expand Down
19 changes: 14 additions & 5 deletions src/Collector/MethodCall/MethodCallArgTypesCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,21 @@
*/
final class MethodCallArgTypesCollector implements Collector
{
public function __construct(
private readonly ClassMethodCallReferenceResolver $classMethodCallReferenceResolver,
private readonly CollectorMetadataPrinter $collectorMetadataPrinter,
) {
/**
* @readonly
* @var \Symplify\PHPStanRules\Matcher\ClassMethodCallReferenceResolver
*/
private $classMethodCallReferenceResolver;
/**
* @readonly
* @var \Symplify\PHPStanRules\Printer\CollectorMetadataPrinter
*/
private $collectorMetadataPrinter;
public function __construct(ClassMethodCallReferenceResolver $classMethodCallReferenceResolver, CollectorMetadataPrinter $collectorMetadataPrinter)
{
$this->classMethodCallReferenceResolver = $classMethodCallReferenceResolver;
$this->collectorMetadataPrinter = $collectorMetadataPrinter;
}

public function getNodeType(): string
{
return MethodCall::class;
Expand Down
12 changes: 8 additions & 4 deletions src/Collector/MethodCallableNode/MethodCallableCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@
*/
final class MethodCallableCollector implements Collector
{
public function __construct(
private readonly ClassMethodCallReferenceResolver $classMethodCallReferenceResolver,
) {
/**
* @readonly
* @var \Symplify\PHPStanRules\Matcher\ClassMethodCallReferenceResolver
*/
private $classMethodCallReferenceResolver;
public function __construct(ClassMethodCallReferenceResolver $classMethodCallReferenceResolver)
{
$this->classMethodCallReferenceResolver = $classMethodCallReferenceResolver;
}

public function getNodeType(): string
{
return MethodCallableNode::class;
Expand Down
13 changes: 9 additions & 4 deletions src/Composer/ClassNamespaceMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@

final class ClassNamespaceMatcher
{
public function __construct(
private readonly DirectoryChecker $directoryChecker
) {
/**
* @readonly
* @var \Symplify\PHPStanRules\Location\DirectoryChecker
*/
private $directoryChecker;
public function __construct(DirectoryChecker $directoryChecker)
{
$this->directoryChecker = $directoryChecker;
}

/**
Expand Down Expand Up @@ -54,7 +59,7 @@ public function matchPossibleDirectoriesForClass(
* @param string|string[] $items
* @return string[]
*/
private function standardizeToArray(string | array $items): array
private function standardizeToArray($items): array
{
if (! is_array($items)) {
return [$items];
Expand Down
Loading

0 comments on commit 14f5061

Please sign in to comment.