@@ -90,6 +90,7 @@ |
||
| 90 | 90 | |
| 91 | 91 | /** |
| 92 | 92 | * @param string ...$lines |
| 93 | + * @param string[] $lines |
|
| 93 | 94 | * @return CodeGenerator |
| 94 | 95 | */ |
| 95 | 96 | public function header(string ...$lines): CodeGenerator |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | - * @return \Generator|TwigFilter[] |
|
| 47 | + * @return \Generator |
|
| 48 | 48 | */ |
| 49 | 49 | private function bootFilters(): \Generator |
| 50 | 50 | { |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | /** |
| 18 | 18 | * @param string|int $to |
| 19 | - * @return Buildable |
|
| 19 | + * @return Movable |
|
| 20 | 20 | */ |
| 21 | 21 | public function move($to): Buildable |
| 22 | 22 | { |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | { |
| 19 | 19 | /** |
| 20 | 20 | * @param string $name |
| 21 | - * @return Production |
|
| 21 | + * @return Renameable |
|
| 22 | 22 | */ |
| 23 | 23 | public function rename(?string $name): Production |
| 24 | 24 | { |
@@ -112,7 +112,7 @@ |
||
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | /** |
| 115 | - * @return LexerInterface|Lexer |
|
| 115 | + * @return Lexer\Stateless |
|
| 116 | 116 | */ |
| 117 | 117 | public static function new(): LexerInterface |
| 118 | 118 | { |
@@ -308,7 +308,7 @@ |
||
| 308 | 308 | /** |
| 309 | 309 | * Implementation of “simple”. |
| 310 | 310 | * |
| 311 | - * @param int|string|null $pNodeId |
|
| 311 | + * @param string|null $pNodeId |
|
| 312 | 312 | * @return string|int|null |
| 313 | 313 | */ |
| 314 | 314 | protected function simple(&$pNodeId) |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | /** |
| 102 | - * @return iterable |
|
| 102 | + * @return \Generator |
|
| 103 | 103 | */ |
| 104 | 104 | public function getTokens(): iterable |
| 105 | 105 | { |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | |
| 124 | 124 | /** |
| 125 | 125 | * @param Readable $input |
| 126 | - * @return \Traversable|TokenInterface[] |
|
| 126 | + * @return \Generator |
|
| 127 | 127 | */ |
| 128 | 128 | private function exec(Readable $input): \Traversable |
| 129 | 129 | { |
@@ -162,7 +162,7 @@ |
||
| 162 | 162 | /** |
| 163 | 163 | * Unfold trace |
| 164 | 164 | * @param BufferInterface $buffer |
| 165 | - * @return mixed |
|
| 165 | + * @return null|boolean |
|
| 166 | 166 | */ |
| 167 | 167 | protected function unfold(BufferInterface $buffer) |
| 168 | 168 | { |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | * Constructor. |
| 60 | 60 | * |
| 61 | 61 | * @param string|int $rule Rule name. |
| 62 | - * @param mixed $data Data. |
|
| 62 | + * @param integer $data Data. |
|
| 63 | 63 | * @param array $then Next step jumpers |
| 64 | 64 | * @param int $depth Depth. |
| 65 | 65 | */ |