Skip to content

Commit f754efd

Browse files
committed
add expected reports of generator without specified types
1 parent 1163e3c commit f754efd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/PHPStan/Rules/Functions/MissingFunctionReturnTypehintRuleTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ public function testRule(): void
5858
'Function MissingFunctionReturnTypehint\callableNestedNoPrototype() return type has no signature specified for callable.',
5959
141,
6060
],
61+
[
62+
'Function MissingFunctionReturnTypehint\returnsGeneratorOfIntegersNoPrototype() return type with generic class Generator does not specify its types: TKey, TValue, TSend, TReturn',
63+
152,
64+
],
65+
[
66+
'Function MissingFunctionReturnTypehint\returnsGeneratorOfIntegersByStringNoPrototype() return type with generic class Generator does not specify its types: TKey, TValue, TSend, TReturn',
67+
169,
68+
],
6169
]);
6270
}
6371

0 commit comments

Comments
 (0)