Skip to content

Commit b516d90

Browse files
Add type to final/internal public/protected properties
1 parent 0cc1b71 commit b516d90

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Dumper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@ class Dumper
2424
{
2525
/**
2626
* The amount of spaces to use for indentation of nested nodes.
27-
*
28-
* @var int
2927
*/
30-
protected $indentation;
28+
private int $indentation;
3129

3230
public function __construct(int $indentation = 4)
3331
{

Inline.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class Inline
2626
{
2727
public const REGEX_QUOTED_STRING = '(?:"([^"\\\\]*+(?:\\\\.[^"\\\\]*+)*+)"|\'([^\']*+(?:\'\'[^\']*+)*+)\')';
2828

29-
public static $parsedLineNumber = -1;
30-
public static $parsedFilename;
29+
public static int $parsedLineNumber = -1;
30+
public static ?string $parsedFilename = null;
3131

3232
private static bool $exceptionOnInvalidType = false;
3333
private static bool $objectSupport = false;

0 commit comments

Comments
 (0)