File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ final class RegexAlternation
1010 /** @var array<int, list<int>> */
1111 private array $ groupCombinations = [];
1212
13- public function __construct (private int $ alternationId )
13+ public function __construct (private readonly int $ alternationId )
1414 {
1515 }
1616
Original file line number Diff line number Diff line change 44
55use PHPStan \Type \Type ;
66
7- class RegexCapturingGroup
7+ final class RegexCapturingGroup
88{
99
1010 private bool $ forceNonOptional = false ;
1111
1212 public function __construct (
13- private int $ id ,
14- private ?string $ name ,
15- private ?RegexAlternation $ alternation ,
16- private bool $ inOptionalQuantification ,
17- private RegexCapturingGroup |RegexNonCapturingGroup |null $ parent ,
18- private Type $ type ,
13+ private readonly int $ id ,
14+ private readonly ?string $ name ,
15+ private readonly ?RegexAlternation $ alternation ,
16+ private readonly bool $ inOptionalQuantification ,
17+ private readonly RegexCapturingGroup |RegexNonCapturingGroup |null $ parent ,
18+ private readonly Type $ type ,
1919 )
2020 {
2121 }
Original file line number Diff line number Diff line change 22
33namespace PHPStan \Type \Regex ;
44
5- class RegexNonCapturingGroup
5+ final class RegexNonCapturingGroup
66{
77
88 public function __construct (
9- private ?RegexAlternation $ alternation ,
10- private bool $ inOptionalQuantification ,
11- private RegexCapturingGroup |RegexNonCapturingGroup |null $ parent ,
12- private bool $ resetGroupCounter ,
9+ private readonly ?RegexAlternation $ alternation ,
10+ private readonly bool $ inOptionalQuantification ,
11+ private readonly RegexCapturingGroup |RegexNonCapturingGroup |null $ parent ,
12+ private readonly bool $ resetGroupCounter ,
1313 )
1414 {
1515 }
You can’t perform that action at this time.
0 commit comments