Skip to content

Commit 35eeb6b

Browse files
Add types to private and internal properties
1 parent b307cb5 commit 35eeb6b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Node/ArrayNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
class ArrayNode extends Node
2222
{
23-
protected $index;
23+
protected int $index;
2424

2525
public function __construct()
2626
{

Token.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ class Token
3030
public const PUNCTUATION_TYPE = 'punctuation';
3131

3232
/**
33-
* @param string $type The type of the token (self::*_TYPE)
34-
* @param int|null $cursor The cursor position in the source
33+
* @param self::*_TYPE $type
34+
* @param int|null $cursor The cursor position in the source
3535
*/
3636
public function __construct(string $type, string|int|float|null $value, ?int $cursor)
3737
{

0 commit comments

Comments
 (0)