Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Update phpstan/phpstan and rector/rector #1149

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
"ergebnis/data-provider": "^3.4.0",
"ergebnis/license": "^2.6.0",
"ergebnis/phpunit-slow-test-detector": "^2.17.0",
"ergebnis/rector-rules": "^1.2.0",
"ergebnis/rector-rules": "^1.3.0",
"fakerphp/faker": "^1.24.1",
"phpstan/extension-installer": "^1.4.3",
"phpstan/phpstan": "^1.12.11",
"phpstan/phpstan-deprecation-rules": "^1.2.1",
"phpstan/phpstan-phpunit": "^1.4.1",
"phpstan/phpstan-strict-rules": "^1.6.1",
"phpstan/phpstan": "^2.1.1",
"phpstan/phpstan-deprecation-rules": "^2.0.1",
"phpstan/phpstan-phpunit": "^2.0.3",
"phpstan/phpstan-strict-rules": "^2.0.1",
"phpunit/phpunit": "^9.6.21",
"rector/rector": "^1.2.10",
"rector/rector": "^2.0.6",
"symfony/filesystem": "^5.0.0 || ^6.0.0",
"symfony/process": "^5.0.0 || ^6.0.0"
},
Expand Down
120 changes: 59 additions & 61 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 38 additions & 10 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,52 +1,80 @@
parameters:
ignoreErrors:
-
message: "#^Property Ergebnis\\\\PhpCsFixer\\\\Config\\\\Rules\\:\\:\\$value type has no value type specified in iterable type array\\.$#"
message: '#^Method Ergebnis\\PhpCsFixer\\Config\\Rules\:\:toArray\(\) should return array\<string, array\<string, mixed\>\|bool\> but returns array\.$#'
identifier: return.type
count: 1
path: src/Rules.php

-
message: "#^Parameter \\#1 \\$iterable of static method Ergebnis\\\\PhpCsFixer\\\\Config\\\\Fixers\\:\\:fromIterable\\(\\) expects iterable\\<PhpCsFixer\\\\Fixer\\\\FixerInterface\\>, array\\<int, \\(PhpCsFixer\\\\Fixer\\\\FixerInterface&PHPUnit\\\\Framework\\\\MockObject\\\\Stub\\)\\|stdClass\\> given\\.$#"
message: '#^Parameter \#1 \$value of class Ergebnis\\PhpCsFixer\\Config\\Rules constructor expects array\<string, array\<string, mixed\>\|bool\>, array given\.$#'
identifier: argument.type
count: 1
path: src/Rules.php

-
message: '#^Property Ergebnis\\PhpCsFixer\\Config\\Rules\:\:\$value type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Rules.php

-
message: '#^Parameter \#1 \$iterable of static method Ergebnis\\PhpCsFixer\\Config\\Fixers\:\:fromIterable\(\) expects iterable\<PhpCsFixer\\Fixer\\FixerInterface\>, array\<int, \(PhpCsFixer\\Fixer\\FixerInterface&PHPUnit\\Framework\\MockObject\\Stub\)\|stdClass\> given\.$#'
identifier: argument.type
count: 1
path: test/Unit/FixersTest.php

-
message: "#^Parameter \\#1 \\$iterable of static method Ergebnis\\\\PhpCsFixer\\\\Config\\\\Fixers\\:\\:fromIterable\\(\\) expects iterable\\<PhpCsFixer\\\\Fixer\\\\FixerInterface\\>, stdClass given\\.$#"
message: '#^Parameter \#1 \$iterable of static method Ergebnis\\PhpCsFixer\\Config\\Fixers\:\:fromIterable\(\) expects iterable\<PhpCsFixer\\Fixer\\FixerInterface\>, stdClass given\.$#'
identifier: argument.type
count: 1
path: test/Unit/FixersTest.php

-
message: "#^Parameter \\#1 \\$iterable of static method Ergebnis\\\\PhpCsFixer\\\\Config\\\\Fixers\\:\\:fromIterable\\(\\) expects iterable\\<PhpCsFixer\\\\Fixer\\\\FixerInterface\\>, string given\\.$#"
message: '#^Parameter \#1 \$iterable of static method Ergebnis\\PhpCsFixer\\Config\\Fixers\:\:fromIterable\(\) expects iterable\<PhpCsFixer\\Fixer\\FixerInterface\>, string given\.$#'
identifier: argument.type
count: 1
path: test/Unit/FixersTest.php

-
message: "#^Method Ergebnis\\\\PhpCsFixer\\\\Config\\\\Test\\\\Unit\\\\RuleSet\\\\AbstractRuleSetTestCase\\:\\:sort\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
message: '#^Method Ergebnis\\PhpCsFixer\\Config\\Test\\Unit\\RuleSet\\AbstractRuleSetTestCase\:\:fixersThatAreRegistered\(\) should return array\<string, PhpCsFixer\\Fixer\\FixerInterface\> but returns array\<mixed\>\.$#'
identifier: return.type
count: 1
path: test/Unit/RuleSet/AbstractRuleSetTestCase.php

-
message: '#^Method Ergebnis\\PhpCsFixer\\Config\\Test\\Unit\\RuleSet\\AbstractRuleSetTestCase\:\:sort\(\) has parameter \$data with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: test/Unit/RuleSet/AbstractRuleSetTestCase.php

-
message: "#^Method Ergebnis\\\\PhpCsFixer\\\\Config\\\\Test\\\\Unit\\\\RuleSet\\\\AbstractRuleSetTestCase\\:\\:sort\\(\\) return type has no value type specified in iterable type array\\.$#"
message: '#^Method Ergebnis\\PhpCsFixer\\Config\\Test\\Unit\\RuleSet\\AbstractRuleSetTestCase\:\:sort\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: test/Unit/RuleSet/AbstractRuleSetTestCase.php

-
message: "#^Method Ergebnis\\\\PhpCsFixer\\\\Config\\\\Test\\\\Unit\\\\RuleSet\\\\AbstractRuleSetTestCase\\:\\:sort\\(\\) should return array but returns array\\|false\\.$#"
message: '#^Method Ergebnis\\PhpCsFixer\\Config\\Test\\Unit\\RuleSet\\AbstractRuleSetTestCase\:\:sort\(\) should return array but returns array\|false\.$#'
identifier: return.type
count: 1
path: test/Unit/RuleSet/AbstractRuleSetTestCase.php

-
message: "#^Parameter \\#1 \\$array_arg of function ksort expects array, array\\<string, PhpCsFixer\\\\Fixer\\\\FixerInterface\\>\\|false given\\.$#"
message: '#^Parameter \#1 \$array_arg of function ksort expects array, array\<string, PhpCsFixer\\Fixer\\FixerInterface\>\|false given\.$#'
identifier: argument.type
count: 1
path: test/Unit/RuleSet/AbstractRuleSetTestCase.php

-
message: "#^Parameter \\#1 \\$arr1 of function array_diff_key expects array, array\\<string, mixed\\>\\|false given\\.$#"
message: '#^Parameter \#1 \$arr1 of function array_diff_key expects array, array\<string, mixed\>\|false given\.$#'
identifier: argument.type
count: 1
path: test/Unit/RuleSet/ExplicitRuleSetTestCase.php

-
message: "#^Parameter \\#1 \\$arr1 of function array_merge expects array, array\\<string, false\\>\\|false given\\.$#"
message: '#^Parameter \#1 \$arr1 of function array_merge expects array, array\<string, false\>\|false given\.$#'
identifier: argument.type
count: 1
path: test/Unit/RuleSet/ExplicitRuleSetTestCase.php

Loading