From 81d86be2c950e8700c22b7be6fa9db535bbfea6c Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Wed, 28 Dec 2022 23:34:46 +0100 Subject: [PATCH] Remove obsolete array types --- src/AbstractLexer.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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() {