Skip to content

Commit

Permalink
Adjust expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored and ondrejmirtes committed Aug 8, 2024
1 parent ea83653 commit fd71eac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
],
"require": {
"php": "^7.2 || ^8.0",
"phpstan/phpstan": "^1.11.10"
"phpstan/phpstan": "^1.11.11"

This comment has been minimized.

Copy link
@simPod

simPod Aug 14, 2024

@ondrejmirtes phpstan 1.11.11 is not out yet but https://github.com/phpstan/phpstan-nette/releases/tag/1.3.7 is and therefore is not installable 🤔

This comment has been minimized.

Copy link
@ondrejmirtes

ondrejmirtes Aug 14, 2024

Member

Oops, I did it again 😂 Please wait a few days before 1.11.11 is out.

},
"conflict": {
"nette/application": "<2.3.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/Type/Nette/data/strings-match.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function (string $s): void {
assertType('array{string, string}|null', $result);

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

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

0 comments on commit fd71eac

Please sign in to comment.