Skip to content

Commit 67ae3ba

Browse files
committed
add phpdoc for generators in unit tests
1 parent 682acb4 commit 67ae3ba

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

tests/PHPStan/Analyser/LegacyNodeScopeResolverTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7315,6 +7315,9 @@ public function testReplaceFunctions(
73157315
);
73167316
}
73177317

7318+
/**
7319+
* @return Generator<string|int, array{string,string}>
7320+
*/
73187321
public static function dataFilterVar(): Generator
73197322
{
73207323
$typesAndFilters = [

tests/PHPStan/Parser/CachedParserTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ public function testParseFileClearCache(
4646
);
4747
}
4848

49+
/**
50+
* @return Generator<string, array{cachedNodesByStringCountMax: int,cachedNodesByStringCountExpected: int}>
51+
*/
4952
public static function dataParseFileClearCache(): Generator
5053
{
5154
yield 'even' => [

tests/PHPStan/Reflection/ParametersAcceptorSelectorTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
class ParametersAcceptorSelectorTest extends PHPStanTestCase
4040
{
4141

42+
/**
43+
* @return Generator<int,array{Type[], ParametersAcceptor[], bool, ParametersAcceptor}>
44+
*/
4245
public static function dataSelectFromTypes(): Generator
4346
{
4447
require_once __DIR__ . '/data/function-definitions.php';

0 commit comments

Comments
 (0)