diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 6b32ef6f..a36374f6 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -30,12 +30,6 @@ parameters: count: 1 path: src/Rules.php - - - message: '#^Class "Ergebnis\\PhpCsFixer\\Config\\Test\\EndToEnd\\RuleSet\\CustomTest" is not allowed to extend "Ergebnis\\PhpCsFixer\\Config\\Test\\EndToEnd\\RuleSet\\AbstractRuleSetTestCase"\.$#' - identifier: ergebnis.noExtends - count: 1 - path: test/EndToEnd/RuleSet/CustomTest.php - - message: '#^Parameter \#1 \$iterable of static method Ergebnis\\PhpCsFixer\\Config\\Fixers\:\:fromIterable\(\) expects iterable\, array\ given\.$#' identifier: argument.type diff --git a/phpstan.neon b/phpstan.neon index 3039ec1b..48585aa1 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -2,6 +2,11 @@ includes: - phpstan-baseline.neon parameters: + ergebnis: + noExtends: + classesAllowedToBeExtended: + - Ergebnis\PhpCsFixer\Config\Test\EndToEnd\RuleSet\AbstractRuleSetTestCase + inferPrivatePropertyTypeFromConstructor: true level: max