diff --git a/src/AbstractLexer.php b/src/AbstractLexer.php index eed4c51..e160a8f 100644 --- a/src/AbstractLexer.php +++ b/src/AbstractLexer.php @@ -56,16 +56,14 @@ abstract class AbstractLexer /** * The next token in the input. * - * @var mixed[]|null - * @psalm-var Token|null + * @var Token|null */ public $lookahead; /** * The last matched/seen token. * - * @var mixed[]|null - * @psalm-var Token|null + * @var Token|null */ public $token; @@ -217,8 +215,7 @@ public function isA($value, $token) /** * Moves the lookahead token forward. * - * @return mixed[]|null The next token or NULL if there are no more tokens ahead. - * @psalm-return Token|null + * @return Token|null The next token or NULL if there are no more tokens ahead. */ public function peek() { @@ -232,8 +229,7 @@ public function peek() /** * Peeks at the next token, returns it and immediately resets the peek. * - * @return mixed[]|null The next token or NULL if there are no more tokens ahead. - * @psalm-return Token|null + * @return Token|null The next token or NULL if there are no more tokens ahead. */ public function glimpse() {