Update dependencies

This commit is contained in:
Chris Hunt
2022-11-14 19:35:16 +00:00
parent 0966639699
commit ee77d09c58
677 changed files with 9253 additions and 65635 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;
}