Skip to content

Commit

Permalink
Merge pull request #529 from kamil-tekiela/types-in-Parser
Browse files Browse the repository at this point in the history
Add native property types in Parser
  • Loading branch information
MauricioFauth committed Jan 16, 2024
2 parents a4cd08c + b9662e6 commit f272605
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/Parser.php
Expand Up @@ -354,24 +354,20 @@ class Parser

/**
* The list of tokens that are parsed.
*
* @var TokensList|null
*/
public $list;
public TokensList|null $list = null;

/**
* List of statements parsed.
*
* @var Statement[]
*/
public $statements = [];
public array $statements = [];

/**
* The number of opened brackets.
*
* @var int
*/
public $brackets = 0;
public int $brackets = 0;

/**
* @param string|UtfString|TokensList|null $list the list of tokens to be parsed
Expand Down

0 comments on commit f272605

Please sign in to comment.