Completed
Pull Request — master (#4)
by Colin
01:12
created
src/Json5Decoder.php 1 patch
Doc Comments   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     /**
98 98
      * @param int $at
99 99
      *
100
-     * @return null
100
+     * @return null|string
101 101
      */
102 102
     private function getByte($at)
103 103
     {
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      * Get the next character without consuming it or
166 166
      * assigning it to the ch variable.
167 167
      *
168
-     * @return mixed
168
+     * @return null|string
169 169
      */
170 170
     private function peek()
171 171
     {
@@ -582,11 +582,17 @@  discard block
 block discarded – undo
582 582
         }
583 583
     }
584 584
 
585
+    /**
586
+     * @param string $message
587
+     */
585 588
     private function throwSyntaxError($message)
586 589
     {
587 590
         throw new SyntaxError($message, $this->lineNumber, $this->column);
588 591
     }
589 592
 
593
+    /**
594
+     * @param string|null $chr
595
+     */
590 596
     private static function renderChar($chr)
591 597
     {
592 598
         return $chr === null ? 'EOF' : "'" . $chr . "'";
Please login to merge, or discard this patch.