diff --git a/types/AsNumericTest.php b/types/AsNumericTest.php index f84fd11..fbd8d72 100644 --- a/types/AsNumericTest.php +++ b/types/AsNumericTest.php @@ -5,4 +5,4 @@ use function PHPStan\Testing\assertType; $variable = random_int(0, 1) ? '7415541' : 'not numeric'; -assertType('numeric', type($variable)->asNumeric()); +assertType('float|int|string', type($variable)->asNumeric());