Completed
Push — master ( a6b9b6...0fe1d6 )
by Kirill
04:21
created
src/Grammar/Analyzer.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -367,7 +367,8 @@
 block discarded – undo
367 367
     {
368 368
         $tokenName = $tokens->current()->getValue(1);
369 369
 
370
-        if (false) { // TODO
370
+        if (false) {
371
+// TODO
371 372
             $error = \sprintf('Token %s does not exist in rule %s.', $tokenName, $this->ruleName);
372 373
             throw new GrammarException($error, 4);
373 374
         }
Please login to merge, or discard this patch.
src/Grammar/Delegate/RuleDelegate.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.