Skip to content

Commit 40dfc8f

Browse files
committed
prevent unnecessary work
1 parent ea94900 commit 40dfc8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Type/Php/RegexGroupParser.php

+1
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ private function walkGroupAst(
390390

391391
// a single token non-falsy on its own
392392
$isNonFalsy = TrinaryLogic::createYes();
393+
break;
393394
}
394395

395396
if ($meaningfulTokens > 0) {

0 commit comments

Comments
 (0)