@@ -97,7 +97,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 . "'"; |