Skip to content

Commit 717cb27

Browse files
committed
update PHPDoc @throws where applicable
1 parent 192de3b commit 717cb27

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/Lexer.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,12 +351,13 @@ public function lex()
351351
/**
352352
* Creates a new error log.
353353
*
354-
* @param string $msg the error message
355-
* @param string $str the character that produced the error
356-
* @param int $pos the position of the character
357-
* @param int $code the code of the error
354+
* @param string $msg the error message
355+
* @param string $str the character that produced the error
356+
* @param int $pos the position of the character
357+
* @param int $code the code of the error
358358
*
359359
* @throws LexerException throws the exception, if strict mode is enabled.
360+
* @throws \Exception
360361
*/
361362
public function error($msg, $str = '', $pos = 0, $code = 0)
362363
{
@@ -842,6 +843,7 @@ public function parseNumber()
842843
* @param string $quote additional starting symbol
843844
*
844845
* @return null|Token
846+
* @throws LexerException
845847
*/
846848
public function parseString($quote = '')
847849
{
@@ -889,6 +891,7 @@ public function parseString($quote = '')
889891
* Parses a symbol.
890892
*
891893
* @return null|Token
894+
* @throws LexerException
892895
*/
893896
public function parseSymbol()
894897
{

0 commit comments

Comments
 (0)