Skip to content

Commit f4cb3ed

Browse files
committed
fix
1 parent 4bb0da6 commit f4cb3ed

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/Type/Php/RegexArrayShapeMatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ private function createSubjectValueType(Type $baseType, int $flags, bool $matche
320320
if ($this->containsPatternOrder($flags)) {
321321
$subjectValueType = TypeCombinator::intersect(
322322
new ArrayType(new IntegerType(), $subjectValueType),
323-
new AccessoryArrayListType()
323+
new AccessoryArrayListType(),
324324
);
325325
}
326326
}

src/Type/Regex/RegexAstWalkResult.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ public function __construct(
2020
private array $markVerbs,
2121
private Type $subjectBaseType,
2222
)
23-
{}
23+
{
24+
}
2425

2526
public static function createEmpty(): self
2627
{
@@ -30,7 +31,7 @@ public static function createEmpty(): self
3031
100,
3132
[],
3233
[],
33-
new StringType()
34+
new StringType(),
3435
);
3536
}
3637

src/Type/Regex/RegexGroupParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ public function parseGroups(string $regex): ?RegexAstWalkResult
111111
);
112112
if ($subjectAsGroupResult->isNonFalsy()->yes() || $subjectAsGroupResult->isNumeric()->yes()) {
113113
$astWalkResult = $astWalkResult->withSubjectBaseType(
114-
TypeCombinator::intersect(new StringType(), new AccessoryNonFalsyStringType())
114+
TypeCombinator::intersect(new StringType(), new AccessoryNonFalsyStringType()),
115115
);
116116
} elseif ($subjectAsGroupResult->isNonEmpty()->yes()) {
117117
$astWalkResult = $astWalkResult->withSubjectBaseType(
118-
TypeCombinator::intersect(new StringType(), new AccessoryNonEmptyStringType())
118+
TypeCombinator::intersect(new StringType(), new AccessoryNonEmptyStringType()),
119119
);
120120
}
121121

0 commit comments

Comments
 (0)