Skip to content

Commit

Permalink
Merge branch refs/heads/1.11.x into 1.12.x
Browse files Browse the repository at this point in the history
  • Loading branch information
phpstan-bot authored Aug 8, 2024
2 parents e6ff365 + 82d19c6 commit 6d58150
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/Type/Regex/RegexAlternation.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ final class RegexAlternation
/** @var array<int, list<int>> */
private array $groupCombinations = [];

public function __construct(private int $alternationId)
public function __construct(private readonly int $alternationId)
{
}

Expand Down
12 changes: 6 additions & 6 deletions src/Type/Regex/RegexCapturingGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ final class RegexCapturingGroup
private bool $forceNonOptional = false;

public function __construct(
private int $id,
private ?string $name,
private ?RegexAlternation $alternation,
private bool $inOptionalQuantification,
private RegexCapturingGroup|RegexNonCapturingGroup|null $parent,
private Type $type,
private readonly int $id,
private readonly ?string $name,
private readonly ?RegexAlternation $alternation,
private readonly bool $inOptionalQuantification,
private readonly RegexCapturingGroup|RegexNonCapturingGroup|null $parent,
private readonly Type $type,
)
{
}
Expand Down
8 changes: 4 additions & 4 deletions src/Type/Regex/RegexNonCapturingGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ final class RegexNonCapturingGroup
{

public function __construct(
private ?RegexAlternation $alternation,
private bool $inOptionalQuantification,
private RegexCapturingGroup|RegexNonCapturingGroup|null $parent,
private bool $resetGroupCounter,
private readonly ?RegexAlternation $alternation,
private readonly bool $inOptionalQuantification,
private readonly RegexCapturingGroup|RegexNonCapturingGroup|null $parent,
private readonly bool $resetGroupCounter,
)
{
}
Expand Down

0 comments on commit 6d58150

Please sign in to comment.