Skip to content

Commit f272605

Browse files
Merge pull request #529 from kamil-tekiela/types-in-Parser
Add native property types in Parser
2 parents a4cd08c + b9662e6 commit f272605

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

src/Parser.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -354,24 +354,20 @@ class Parser
354354

355355
/**
356356
* The list of tokens that are parsed.
357-
*
358-
* @var TokensList|null
359357
*/
360-
public $list;
358+
public TokensList|null $list = null;
361359

362360
/**
363361
* List of statements parsed.
364362
*
365363
* @var Statement[]
366364
*/
367-
public $statements = [];
365+
public array $statements = [];
368366

369367
/**
370368
* The number of opened brackets.
371-
*
372-
* @var int
373369
*/
374-
public $brackets = 0;
370+
public int $brackets = 0;
375371

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

0 commit comments

Comments
 (0)