From 663039761bbf769504d6cb3dffcfc30adc3bf5ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Wed, 8 Jan 2025 11:45:31 +0100 Subject: [PATCH] Fix: Allow extending from AbstractRuleSetTestCase --- phpstan-baseline.neon | 6 ------ phpstan.neon | 5 +++++ 2 files changed, 5 insertions(+), 6 deletions(-) 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