Skip to content

Commit

Permalink
Fix: Allow extending from AbstractRuleSetTestCase
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Jan 8, 2025
1 parent b34a12c commit 6630397
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 0 additions & 6 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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\<PhpCsFixer\\Fixer\\FixerInterface\>, array\<int, \(PhpCsFixer\\Fixer\\FixerInterface&PHPUnit\\Framework\\MockObject\\Stub\)\|stdClass\> given\.$#'
identifier: argument.type
Expand Down
5 changes: 5 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ includes:
- phpstan-baseline.neon

parameters:
ergebnis:
noExtends:
classesAllowedToBeExtended:
- Ergebnis\PhpCsFixer\Config\Test\EndToEnd\RuleSet\AbstractRuleSetTestCase

inferPrivatePropertyTypeFromConstructor: true

level: max
Expand Down

0 comments on commit 6630397

Please sign in to comment.