Skip to content

Commit fd71eac

Browse files
staabmondrejmirtes
authored andcommitted
Adjust expectations
1 parent ea83653 commit fd71eac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
],
88
"require": {
99
"php": "^7.2 || ^8.0",
10-
"phpstan/phpstan": "^1.11.10"
10+
"phpstan/phpstan": "^1.11.11"
1111
},
1212
"conflict": {
1313
"nette/application": "<2.3.0",

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function (string $s): void {
1515
assertType('array{string, string}|null', $result);
1616

1717
$result = Strings::match($s, '/(foo)(bar)(baz)/', PREG_OFFSET_CAPTURE);
18-
assertType("array{array{string, int<0, max>}, array{'foo', int<0, max>}, array{'bar', int<0, max>}, array{'baz', int<0, max>}}|null", $result);
18+
assertType("array{array{string, int<-1, max>}, array{'foo', int<-1, max>}, array{'bar', int<-1, max>}, array{'baz', int<-1, max>}}|null", $result);
1919

2020
$result = Strings::match($s, '/(foo)(bar)(baz)/');
2121
assertType("array{string, 'foo', 'bar', 'baz'}|null", $result);

0 commit comments

Comments
 (0)