@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | /** |
| 75 | 75 | * Build the analyzer of the rules (does not analyze the rules). |
| 76 | 76 | * |
| 77 | - * @return Rule[]|\Traversable |
|
| 77 | + * @return \Generator |
|
| 78 | 78 | * @throws GrammarException |
| 79 | 79 | */ |
| 80 | 80 | public function analyze(): iterable |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | * Implementation of “simple”. |
| 310 | 310 | * |
| 311 | 311 | * @param LookaheadIterator $tokens |
| 312 | - * @param int|string|null $pNodeId |
|
| 312 | + * @param string|null $pNodeId |
|
| 313 | 313 | * @return string|int|null |
| 314 | 314 | * @throws GrammarException |
| 315 | 315 | */ |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | - * @param RuleInterface|NodeInterface $rule |
|
| 42 | + * @param null|NodeInterface $rule |
|
| 43 | 43 | * @return \Traversable |
| 44 | 44 | */ |
| 45 | 45 | private function getTokens(RuleInterface $rule): \Traversable |