Skip to content

Commit 577acd4

Browse files
committed
Code enhancements.
1 parent 512a2b8 commit 577acd4

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/CodeStore.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,33 +60,33 @@ abstract class CodeStore
6060
/**
6161
* String for separating parts of the generated code. In most cases a comment with one character repeated many times.
6262
*
63-
* @var string
63+
* @var string|null
6464
*
6565
* @since 1.0.0
6666
* @api
6767
*/
68-
protected $separator;
68+
protected ?string $separator = null;
6969

7070
/**
7171
* The number of spaces per indentation level.
7272
*
7373
* @var int
7474
*/
75-
private $indentation;
75+
private int $indentation;
7676

7777
/**
7878
* The source code. Each element is a line.
7979
*
8080
* @var string[]
8181
*/
82-
private $lines;
82+
private array $lines;
8383

8484
/**
8585
* The maximum width of the generated code (in chars).
8686
*
8787
* @var int
8888
*/
89-
private $width;
89+
private int $width;
9090

9191
//--------------------------------------------------------------------------------------------------------------------
9292
/**

test/ConcreteCodeStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ConcreteCodeStore extends CodeStore
1616
*
1717
* @var bool
1818
*/
19-
private $isHeredoc = false;
19+
private bool $isHeredoc = false;
2020

2121
//--------------------------------------------------------------------------------------------------------------------
2222
/**

0 commit comments

Comments
 (0)