@@ -44,7 +44,7 @@ |
||
44 | 44 | |
45 | 45 | /** |
46 | 46 | * @param Context $context |
47 | - * @return iterable|OpcodeInterface[] |
|
47 | + * @return \Generator |
|
48 | 48 | */ |
49 | 49 | public function getOpcodes(Context $context): iterable |
50 | 50 | { |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | * |
119 | 119 | * @param NodeInterface|RuleInterface $node |
120 | 120 | * @param Context $context |
121 | - * @return iterable|OpcodeInterface[]|\Generator |
|
121 | + * @return \Generator |
|
122 | 122 | */ |
123 | 123 | private function bypass(NodeInterface $node, Context $context): \Generator |
124 | 124 | { |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | * |
166 | 166 | * @param RuleInterface $key |
167 | 167 | * @param \Generator $iterator |
168 | - * @return \Generator|OpcodeInterface[] |
|
168 | + * @return \Generator |
|
169 | 169 | */ |
170 | 170 | private function extract(RuleInterface $key, \Generator $iterator): \Generator |
171 | 171 | { |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | |
74 | 74 | if (! \function_exists('\\iterator_each')) { |
75 | 75 | /** |
76 | - * @param iterable $iterator |
|
76 | + * @param Generator $iterator |
|
77 | 77 | * @param Closure $each |
78 | 78 | * @return Generator |
79 | 79 | */ |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | |
93 | 93 | if (! \function_exists('\\iterator_reverse_each')) { |
94 | 94 | /** |
95 | - * @param iterable $iterator |
|
95 | + * @param Generator $iterator |
|
96 | 96 | * @param Closure $each |
97 | 97 | * @return Generator |
98 | 98 | */ |