Skip to content
Open
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
8 changes: 4 additions & 4 deletions extension.neon
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
parameters:
phpunit:
convertUnionToIntersectionType: true
checkDataProviderData: %featureToggles.bleedingEdge%
reportMissingDataProviderReturnType: false
additionalConstructors:
- PHPUnit\Framework\TestCase::setUp
earlyTerminatingMethodCalls:
Expand All @@ -24,8 +24,8 @@ parameters:

parametersSchema:
phpunit: structure([
convertUnionToIntersectionType: bool()
checkDataProviderData: bool(),
convertUnionToIntersectionType: bool(),
reportMissingDataProviderReturnType: bool(),
])

services:
Expand Down Expand Up @@ -76,4 +76,4 @@ conditionalTags:
PHPStan\PhpDoc\PHPUnit\MockObjectTypeNodeResolverExtension:
phpstan.phpDoc.typeNodeResolverExtension: %phpunit.convertUnionToIntersectionType%
PHPStan\Type\PHPUnit\DataProviderReturnTypeIgnoreExtension:
phpstan.ignoreErrorExtension: %phpunit.checkDataProviderData%
phpstan.ignoreErrorExtension: [%featureToggles.bleedingEdge%, not(%phpunit.reportMissingDataProviderReturnType%)]
2 changes: 1 addition & 1 deletion rules.neon
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ conditionalTags:
phpstan.rules.rule: [%strictRulesInstalled%, %featureToggles.bleedingEdge%]

PHPStan\Rules\PHPUnit\DataProviderDataRule:
phpstan.rules.rule: %phpunit.checkDataProviderData%
phpstan.rules.rule: %featureToggles.bleedingEdge%

services:
-
Expand Down
4 changes: 2 additions & 2 deletions tests/Type/PHPUnit/data/data-provider-iterable-value.neon
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
parameters:
phpunit:
checkDataProviderData: true
featureToggles:
bleedingEdge: true

includes:
- ../../../../extension.neon
Loading