Skip to content

Commit

Permalink
Update preg_match_shapes.php
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Jun 25, 2024
1 parent 37070ff commit 59c2285
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,4 @@ function allGroupsOptional(string $size): void
throw new InvalidArgumentException(sprintf('Invalid size "%s"', $size));
}
assertType('array{string, string, string}|array{string}', $matches);

if (preg_match('~^a\.(?:(b)|(c))?d~', $size, $matches) !== 1) {
throw new InvalidArgumentException(sprintf('Invalid size "%s"', $size));
}
assertType('array{string, string, string}|array{string}', $matches);
}

0 comments on commit 59c2285

Please sign in to comment.