Update dependencies

This commit is contained in:
Chris Hunt
2024-02-16 21:36:54 +00:00
parent 22d7a59e59
commit d52ae0d3c3
9569 changed files with 460443 additions and 282416 deletions

View File

@@ -29,34 +29,23 @@ class TokenStream
/**
* @var Token[]
*/
private $tokens = [];
private array $tokens = [];
/**
* @var Token[]
*/
private $used = [];
private array $used = [];
/**
* @var int
*/
private $cursor = 0;
/**
* @var Token|null
*/
private $peeked;
/**
* @var bool
*/
private $peeking = false;
private int $cursor = 0;
private ?Token $peeked;
private bool $peeking = false;
/**
* Pushes a token.
*
* @return $this
*/
public function push(Token $token): self
public function push(Token $token): static
{
$this->tokens[] = $token;
@@ -68,7 +57,7 @@ class TokenStream
*
* @return $this
*/
public function freeze(): self
public function freeze(): static
{
return $this;
}
@@ -156,7 +145,7 @@ class TokenStream
/**
* Skips next whitespace if any.
*/
public function skipWhitespace()
public function skipWhitespace(): void
{
$peek = $this->getPeek();