diff --git a/composer.json b/composer.json index 14be9c3..6489b3e 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ "keywords": ["static analysis"], "require": { "php": "^7.4 || ^8.0", - "phpstan/phpstan": "^2.2.15" + "phpstan/phpstan": "^2.3.6" }, "require-dev": { "nikic/php-parser": "^5.1", diff --git a/tests/Type/WebMozartAssert/data/type.php b/tests/Type/WebMozartAssert/data/type.php index 9960eed..e76eab5 100644 --- a/tests/Type/WebMozartAssert/data/type.php +++ b/tests/Type/WebMozartAssert/data/type.php @@ -42,16 +42,16 @@ public function integer($a, $b): void public function integerish($a, $b, int $c, float $d, string $e, string $f): void { Assert::integerish($a); - assertType('float|int|numeric-string', $a); + assertType('float<-9.223372036854776E+18, 9.223372036854776E+18>|int|numeric-string', $a); Assert::nullOrIntegerish($b); - assertType('float|int|numeric-string|null', $b); + assertType('float<-9.223372036854776E+18, 9.223372036854776E+18>|int|numeric-string|null', $b); Assert::integerish($c); assertType('int', $c); Assert::integerish($d); - assertType('float', $d); + assertType('float<-9.223372036854776E+18, 9.223372036854776E+18>', $d); Assert::integerish($e); assertType('numeric-string', $e);