From 9c4187fd2f59c3c4a9fd5bdb29449865f0ab32ff Mon Sep 17 00:00:00 2001 From: marcosh Date: Tue, 7 Dec 2021 12:00:52 +0100 Subject: [PATCH] fix abs tests --- tests/FunctionCallTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/FunctionCallTest.php b/tests/FunctionCallTest.php index 8bc32b714a2..1197d861e04 100644 --- a/tests/FunctionCallTest.php +++ b/tests/FunctionCallTest.php @@ -47,9 +47,9 @@ function fooFoo(array $a = []): void { $c = $_GET["c"]; $c = is_numeric($c) ? abs($c) : null;', 'assertions' => [ - '$a' => 'int', + '$a' => 'int|positive-int', '$b' => 'float', - '$c' => 'float|int|null', + '$c' => 'float|int|null|positive-int', ], 'error_levels' => ['MixedAssignment', 'MixedArgument'], ],