File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ final class RegexAlternation
10
10
/** @var array<int, list<int>> */
11
11
private array $ groupCombinations = [];
12
12
13
- public function __construct (private int $ alternationId )
13
+ public function __construct (private readonly int $ alternationId )
14
14
{
15
15
}
16
16
Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ final class RegexCapturingGroup
10
10
private bool $ forceNonOptional = false ;
11
11
12
12
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 ,
19
19
)
20
20
{
21
21
}
Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ final class RegexNonCapturingGroup
6
6
{
7
7
8
8
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 ,
13
13
)
14
14
{
15
15
}
You can’t perform that action at this time.
0 commit comments