Skip to content

Commit

Permalink
Add types to public and protected properties
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jul 27, 2023
1 parent 03f3913 commit 95ff83d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AbstractString.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ abstract class AbstractString implements \Stringable, \JsonSerializable
public const PREG_SPLIT_DELIM_CAPTURE = \PREG_SPLIT_DELIM_CAPTURE;
public const PREG_SPLIT_OFFSET_CAPTURE = \PREG_SPLIT_OFFSET_CAPTURE;

protected $string = '';
protected $ignoreCase = false;
protected string $string = '';
protected ?bool $ignoreCase = false;

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

Expand Down

0 comments on commit 95ff83d

Please sign in to comment.