Skip to content

Commit 7833154

Browse files
committed
Fix NAN
1 parent 0b7d616 commit 7833154

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/Visitor/Stringify.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ public function mixedT(MixedT $type): string
448448
*/
449449
public function floatToString(float $float): string
450450
{
451-
if ($float === NAN) {
451+
if (is_nan($float)) {
452452
return 'NAN';
453453
}
454454

0 commit comments

Comments
 (0)