Skip to content

Commit

Permalink
Merge pull request #107 from derrabus/bugfix/array-types
Browse files Browse the repository at this point in the history
Remove obsolete array types
  • Loading branch information
greg0ire authored Dec 29, 2022
2 parents 5a72344 + 81d86be commit e74756f
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/AbstractLexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,14 @@ abstract class AbstractLexer
/**
* The next token in the input.
*
* @var mixed[]|null
* @psalm-var Token<T, V>|null
* @var Token<T, V>|null
*/
public $lookahead;

/**
* The last matched/seen token.
*
* @var mixed[]|null
* @psalm-var Token<T, V>|null
* @var Token<T, V>|null
*/
public $token;

Expand Down Expand Up @@ -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<T, V>|null
* @return Token<T, V>|null The next token or NULL if there are no more tokens ahead.
*/
public function peek()
{
Expand All @@ -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<T, V>|null
* @return Token<T, V>|null The next token or NULL if there are no more tokens ahead.
*/
public function glimpse()
{
Expand Down

0 comments on commit e74756f

Please sign in to comment.