Skip to content

Commit

Permalink
type test
Browse files Browse the repository at this point in the history
  • Loading branch information
faissaloux committed Mar 30, 2024
1 parent a04de87 commit 177c1d6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions types/AsFloatTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

declare(strict_types=1);

use function PHPStan\Testing\assertType;

$variable = random_int(0, 1) ? 7415.541 : 7415541;
assertType('float', type($variable)->asFloat());

0 comments on commit 177c1d6

Please sign in to comment.