Skip to content

Commit 6d58150

Browse files
authored
Merge branch refs/heads/1.11.x into 1.12.x
2 parents e6ff365 + 82d19c6 commit 6d58150

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/Type/Regex/RegexAlternation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/Type/Regex/RegexCapturingGroup.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ final class RegexCapturingGroup
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
}

src/Type/Regex/RegexNonCapturingGroup.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ 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
}

0 commit comments

Comments
 (0)