Skip to content

Commit 3ffbf0e

Browse files
committed
fix
1 parent d5c844c commit 3ffbf0e

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

tests/Type/PHPUnit/DataProviderReturnTypeIgnoreExtensionTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,16 @@ public function testRule(): void
2222
$this->analyse([__DIR__ . '/data/data-provider-iterable-value.php'], [
2323
[
2424
'Method DataProviderIterableValueTest\Foo::notADataProvider() return type has no value type specified in iterable type iterable.',
25-
32
25+
32,
26+
'See: https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-iterable-type'
2627
],
2728
]);
2829
}
2930

3031
static public function getAdditionalConfigFiles(): array
3132
{
32-
return [__DIR__ . '/../../../extension.neon'];
33+
return [
34+
__DIR__ . '/data/data-provider-iterable-value.neon'
35+
];
3336
}
3437
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
parameters:
2+
phpunit:
3+
checkDataProviderData: true
4+
5+
includes:
6+
- ../../../../extension.neon

0 commit comments

Comments
 (0)