Skip to content

Commit 95ff83d

Browse files
Add types to public and protected properties
1 parent 03f3913 commit 95ff83d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

AbstractString.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ abstract class AbstractString implements \Stringable, \JsonSerializable
3939
public const PREG_SPLIT_DELIM_CAPTURE = \PREG_SPLIT_DELIM_CAPTURE;
4040
public const PREG_SPLIT_OFFSET_CAPTURE = \PREG_SPLIT_OFFSET_CAPTURE;
4141

42-
protected $string = '';
43-
protected $ignoreCase = false;
42+
protected string $string = '';
43+
protected ?bool $ignoreCase = false;
4444

4545
abstract public function __construct(string $string = '');
4646

0 commit comments

Comments
 (0)