Skip to content

Commit 5533d9f

Browse files
committed
Revert "skip alternation (|) tokens"
1 parent 831b34f commit 5533d9f

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
@@ -296,10 +296,6 @@ private function createGroupType(TreeNode $group, bool $maybeConstant, string $p
296296
if ($rootAlternation !== null) {
297297
$types = [];
298298
foreach ($rootAlternation->getChildren() as $alternative) {
299-
if ($alternative->getValueToken() === 'alternation') {
300-
continue;
301-
}
302-
303299
$types[] = $this->createGroupType($alternative, $maybeConstant, $patternModifiers);
304300
}
305301

0 commit comments

Comments
 (0)