Skip to content

Commit 7a39826

Browse files
committed
Add native property types in TokensList
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
1 parent 94f2db2 commit 7a39826

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/TokensList.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,13 @@ class TokensList implements ArrayAccess
2121
{
2222
/**
2323
* The count of tokens.
24-
*
25-
* @var int
2624
*/
27-
public $count = 0;
25+
public int $count = 0;
2826

2927
/**
3028
* The index of the next token to be returned.
31-
*
32-
* @var int
3329
*/
34-
public $idx = 0;
30+
public int $idx = 0;
3531

3632
/** @param Token[] $tokens The array of tokens. */
3733
public function __construct(public array $tokens = [])

0 commit comments

Comments
 (0)