@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | * Get the next character without consuming it or |
146 | 146 | * assigning it to the ch variable. |
147 | 147 | * |
148 | - * @return mixed |
|
148 | + * @return string|null |
|
149 | 149 | */ |
150 | 150 | private function peek() |
151 | 151 | { |
@@ -580,6 +580,9 @@ discard block |
||
580 | 580 | } |
581 | 581 | } |
582 | 582 | |
583 | + /** |
|
584 | + * @param string $message |
|
585 | + */ |
|
583 | 586 | private function throwSyntaxError($message) |
584 | 587 | { |
585 | 588 | throw new SyntaxError($message, $this->lineNumber, $this->columnNumber); |