From 30549cc26bba8eb2c31df5cff07d1c92900511f7 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Mon, 24 Mar 2025 15:00:57 +0100 Subject: [PATCH] Fix test expectations --- composer.json | 2 +- tests/Type/Nette/data/strings-match-74.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 2a3630f..89c6dda 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ ], "require": { "php": "^7.4 || ^8.0", - "phpstan/phpstan": "^2.1.11" + "phpstan/phpstan": "^2.1.12" }, "conflict": { "nette/application": "<2.3.0", diff --git a/tests/Type/Nette/data/strings-match-74.php b/tests/Type/Nette/data/strings-match-74.php index 242c371..8226872 100644 --- a/tests/Type/Nette/data/strings-match-74.php +++ b/tests/Type/Nette/data/strings-match-74.php @@ -24,7 +24,7 @@ function (string $s): void { $s, '/(foo)?(bar)?(baz)?/', function ($matches) { - assertType('array{0: array{string, int<-1, max>}, 1?: array{\'\'|\'foo\', int<-1, max>}, 2?: array{\'\'|\'bar\', int<-1, max>}, 3?: array{\'baz\', int<-1, max>}}', $matches); + assertType('list{0: array{string, int<-1, max>}, 1?: array{\'\'|\'foo\', int<-1, max>}, 2?: array{\'\'|\'bar\', int<-1, max>}, 3?: array{\'baz\', int<-1, max>}}', $matches); return ''; }, -1,