@@ -49,21 +49,21 @@ abstract class AbstractLexer
49
49
/**
50
50
* The next token in the input.
51
51
*
52
- * @var mixed[]|null
53
- * @psalm-var Token<T, V>|null
52
+ * @var Token<T, V>|null
54
53
*/
55
54
public Token |null $ lookahead ;
56
55
57
56
/**
58
57
* The last matched/seen token.
59
58
*
60
- * @var mixed[]|null
61
- * @psalm-var Token<T, V>|null
59
+ * @var Token<T, V>|null
62
60
*/
63
61
public Token |null $ token ;
64
62
65
63
/**
66
64
* Composed regex for input parsing.
65
+ *
66
+ * @var non-empty-string|null
67
67
*/
68
68
private string |null $ regex = null ;
69
69
@@ -203,8 +203,7 @@ public function isA(string $value, int|string|UnitEnum $token)
203
203
/**
204
204
* Moves the lookahead token forward.
205
205
*
206
- * @return mixed[]|null The next token or NULL if there are no more tokens ahead.
207
- * @psalm-return Token<T, V>|null
206
+ * @return Token<T, V>|null The next token or NULL if there are no more tokens ahead.
208
207
*/
209
208
public function peek ()
210
209
{
@@ -218,8 +217,7 @@ public function peek()
218
217
/**
219
218
* Peeks at the next token, returns it and immediately resets the peek.
220
219
*
221
- * @return mixed[]|null The next token or NULL if there are no more tokens ahead.
222
- * @psalm-return Token<T, V>|null
220
+ * @return Token<T, V>|null The next token or NULL if there are no more tokens ahead.
223
221
*/
224
222
public function glimpse ()
225
223
{
0 commit comments