@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | /** |
36 | 36 | * @param Context $context |
37 | - * @return iterable |
|
37 | + * @return \Generator |
|
38 | 38 | */ |
39 | 39 | public function getOpcodes(Context $context): iterable |
40 | 40 | { |
@@ -51,7 +51,7 @@ |
||
51 | 51 | |
52 | 52 | /** |
53 | 53 | * @param Context $context |
54 | - * @return iterable |
|
54 | + * @return \Generator |
|
55 | 55 | */ |
56 | 56 | public function getOpcodes(Context $context): iterable |
57 | 57 | { |
@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | /** |
32 | 32 | * @param Context $context |
33 | - * @return iterable |
|
33 | + * @return \Generator |
|
34 | 34 | */ |
35 | 35 | public function getOpcodes(Context $context): iterable |
36 | 36 | { |
@@ -31,7 +31,7 @@ |
||
31 | 31 | |
32 | 32 | /** |
33 | 33 | * @param Context $context |
34 | - * @return iterable |
|
34 | + * @return \Generator |
|
35 | 35 | */ |
36 | 36 | public function getOpcodes(Context $context): iterable |
37 | 37 | { |
@@ -48,7 +48,7 @@ |
||
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
51 | - * @return iterable|array[] |
|
51 | + * @return \Generator |
|
52 | 52 | */ |
53 | 53 | public function getValues(): iterable |
54 | 54 | { |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | |
58 | 58 | /** |
59 | 59 | * @param Readable $file |
60 | - * @return iterable|OpcodeInterface[] |
|
60 | + * @return \Generator |
|
61 | 61 | * @throws SyntaxException |
62 | 62 | */ |
63 | 63 | public function load(Readable $file): iterable |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | |
86 | 86 | /** |
87 | 87 | * @param NodeInterface $node |
88 | - * @return iterable|Opcode[]|\Generator |
|
88 | + * @return \Generator |
|
89 | 89 | */ |
90 | 90 | private function bypass(NodeInterface $node): \Generator |
91 | 91 | { |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | |
109 | 109 | /** |
110 | 110 | * @param ProvidesOpcode $provider |
111 | - * @return \Generator|OpcodeInterface[] |
|
111 | + * @return \Generator |
|
112 | 112 | */ |
113 | 113 | private function extract(ProvidesOpcode $provider): \Generator |
114 | 114 | { |