From b9662e6bff2a9f7e0e68d3536b6c7c83c5b4f7a5 Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Mon, 15 Jan 2024 22:09:29 +0100 Subject: [PATCH] Add native property types in Parser Signed-off-by: Kamil Tekiela --- src/Parser.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/Parser.php b/src/Parser.php index f66beb44..7709214f 100644 --- a/src/Parser.php +++ b/src/Parser.php @@ -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