Completed
Push — master ( d2aa37...0dd457 )
by Colin
04:19
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
     {
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
      * Get the next character without consuming it or
164 164
      * assigning it to the ch variable.
165 165
      *
166
-     * @return mixed
166
+     * @return null|string
167 167
      */
168 168
     private function peek()
169 169
     {
@@ -585,6 +585,9 @@  discard block
 block discarded – undo
585 585
         }
586 586
     }
587 587
 
588
+    /**
589
+     * @param string $message
590
+     */
588 591
     private function throwSyntaxError($message)
589 592
     {
590 593
         // Calculate the column number
@@ -594,6 +597,9 @@  discard block
 block discarded – undo
594 597
         throw new SyntaxError($message, $this->lineNumber, $column);
595 598
     }
596 599
 
600
+    /**
601
+     * @param string|null $chr
602
+     */
597 603
     private static function renderChar($chr)
598 604
     {
599 605
         return $chr === null ? 'EOF' : "'" . $chr . "'";
Please login to merge, or discard this patch.