Completed
Pull Request — master (#2)
by Colin
01:54 queued 46s
created
src/Json5Decoder.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
      * Get the next character without consuming it or
154 154
      * assigning it to the ch variable.
155 155
      *
156
-     * @return mixed
156
+     * @return string|null
157 157
      */
158 158
     private function peek()
159 159
     {
@@ -588,11 +588,17 @@  discard block
 block discarded – undo
588 588
         }
589 589
     }
590 590
 
591
+    /**
592
+     * @param string $message
593
+     */
591 594
     private function throwSyntaxError($message)
592 595
     {
593 596
         throw new SyntaxError($message, $this->lineNumber, $this->columnNumber);
594 597
     }
595 598
 
599
+    /**
600
+     * @param string|null $chr
601
+     */
596 602
     private static function renderChar($chr)
597 603
     {
598 604
         return $chr === null ? 'EOF' : "'" . $chr . "'";
Please login to merge, or discard this patch.