Skip to content

Commit 035c883

Browse files
committed
Remove unreachable wasMatched check in branch reset guard
Amp-Thread-ID: https://ampcode.com/threads/T-01a177b5-960f-71d2-a3e2-fa7649f39d2c
1 parent ab03e06 commit 035c883

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎src/Type/Php/RegexArrayShapeMatcher.php‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ private function matchRegex(string $regex, ?int $flags, TrinaryLogic $wasMatched
165165
$matchesAll
166166
|| $onlyOptionalTopLevelGroup !== null
167167
|| $onlyTopLevelAlternation === null
168-
|| $wasMatched->no()
169168
|| $this->containsUnmatchedAsNull($flags, $matchesAll)
170169
)
171170
) {

0 commit comments

Comments
 (0)