Skip to content

Commit 4386e7e

Browse files
committed
cs
1 parent f3a4e7c commit 4386e7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/Php/RegexGroupParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ private function walkRegexAst(
192192
) {
193193
$capturingGroups[$group->getId()] = $group;
194194

195-
if ($alternation instanceof RegexAlternation) {
195+
if ($alternation !== null) {
196196
$alternation->pushGroup($combinationIndex, $group);
197197
}
198198
}

0 commit comments

Comments
 (0)