Skip to content

Commit 1f0ab85

Browse files
committed
conditional tag
1 parent 0c7b01d commit 1f0ab85

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

extension.neon

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
parameters:
22
phpunit:
33
convertUnionToIntersectionType: true
4+
checkDataProviderData: %featureToggles.bleedingEdge%
45
additionalConstructors:
56
- PHPUnit\Framework\TestCase::setUp
67
earlyTerminatingMethodCalls:
@@ -24,6 +25,7 @@ parameters:
2425
parametersSchema:
2526
phpunit: structure([
2627
convertUnionToIntersectionType: bool()
28+
checkDataProviderData: bool(),
2729
])
2830

2931
services:
@@ -69,9 +71,9 @@ services:
6971

7072
-
7173
class: PHPStan\Type\PHPUnit\DataProviderReturnTypeIgnoreExtension
72-
tags:
73-
- phpstan.ignoreErrorExtension
7474

7575
conditionalTags:
7676
PHPStan\PhpDoc\PHPUnit\MockObjectTypeNodeResolverExtension:
7777
phpstan.phpDoc.typeNodeResolverExtension: %phpunit.convertUnionToIntersectionType%
78+
PHPStan\Type\PHPUnit\DataProviderReturnTypeIgnoreExtension:
79+
phpstan.ignoreErrorExtension: %phpunit.checkDataProviderData%

rules.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ conditionalTags:
1414
phpstan.rules.rule: [%strictRulesInstalled%, %featureToggles.bleedingEdge%]
1515

1616
PHPStan\Rules\PHPUnit\DataProviderDataRule:
17-
phpstan.rules.rule: %featureToggles.bleedingEdge%
17+
phpstan.rules.rule: %phpunit.checkDataProviderData%
1818

1919
services:
2020
-

0 commit comments

Comments
 (0)