Skip to content

Commit

Permalink
fix type test
Browse files Browse the repository at this point in the history
  • Loading branch information
faissaloux committed Mar 30, 2024
1 parent 95c7d75 commit 15b7ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/AsNumericTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());

0 comments on commit 15b7ad4

Please sign in to comment.