Skip to content

Commit 5f97dfa

Browse files
staabmondrejmirtes
authored andcommitted
Fix build after RegexArrayShapeMatcher improvements
1 parent 5da3be5 commit 5f97dfa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Type/Nette/data/strings-match.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ function (string $s): void {
1414
assertType('array{string, string}|null', $result);
1515

1616
$result = Strings::match($s, '/(foo)(bar)(baz)/', PREG_OFFSET_CAPTURE);
17-
assertType('array{array{string, int<0, max>}, array{string, int<0, max>}, array{string, int<0, max>}, array{string, int<0, max>}}|null', $result);
17+
assertType('array{array{string, int<0, max>}, array{non-empty-string, int<0, max>}, array{non-empty-string, int<0, max>}, array{non-empty-string, int<0, max>}}|null', $result);
1818

1919
$result = Strings::match($s, '/(foo)(bar)(baz)/');
20-
assertType('array{string, string, string, string}|null', $result);
20+
assertType('array{string, non-empty-string, non-empty-string, non-empty-string}|null', $result);
2121

2222
$result = Strings::match($s, '/(foo)(bar)'. preg_quote($s) .'(baz)/');
23-
assertType('array{string, string, string, string}|null', $result);
23+
assertType('array{string, non-empty-string, non-empty-string, non-empty-string}|null', $result);
2424
};

0 commit comments

Comments
 (0)