Skip to content

Commit 4839fa7

Browse files
committed
RegexArrayShapeMatcher - more precise subject types
1 parent e3abfd9 commit 4839fa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/Php/RegexArrayShapeMatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ private function matchRegex(string $regex, ?int $flags, TrinaryLogic $wasMatched
116116

117117
if ($groupList === [] && $markVerbs === []) {
118118
$rawRegex = $this->regexExpressionHelper->removeDelimitersAndModifiers($regex);
119-
$type = $this->matchRegex('{('.$rawRegex.')}', $flags, $wasMatched, $matchesAll);
119+
$type = $this->matchRegex('{(' . $rawRegex . ')}', $flags, $wasMatched, $matchesAll);
120120
if ($type === null) {
121121
return null;
122122
}

0 commit comments

Comments
 (0)