Skip to content

Commit d55685c

Browse files
committed
Revert "skip alternation (|) tokens"
1 parent 4e56f55 commit d55685c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Type/Regex/RegexGroupParser.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,6 @@ private function createGroupType(TreeNode $group, bool $maybeConstant, string $p
286286
if ($rootAlternation !== null) {
287287
$types = [];
288288
foreach ($rootAlternation->getChildren() as $alternative) {
289-
if ($alternative->getValueToken() === 'alternation') {
290-
continue;
291-
}
292-
293289
$types[] = $this->createGroupType($alternative, $maybeConstant, $patternModifiers);
294290
}
295291

0 commit comments

Comments
 (0)