From 89f451c67fe522030fd1cdf7fc165f1010c4e552 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Thu, 8 Aug 2024 22:55:14 +0200 Subject: [PATCH] Adjust expectations --- composer.json | 2 +- tests/Type/Nette/data/strings-match.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index c221159..d9ff977 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ ], "require": { "php": "^7.2 || ^8.0", - "phpstan/phpstan": "^1.11.10" + "phpstan/phpstan": "^1.11.11" }, "conflict": { "nette/application": "<2.3.0", diff --git a/tests/Type/Nette/data/strings-match.php b/tests/Type/Nette/data/strings-match.php index eb40fed..011f0e9 100644 --- a/tests/Type/Nette/data/strings-match.php +++ b/tests/Type/Nette/data/strings-match.php @@ -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);