Skip to content

Commit 5c53ee0

Browse files
committed
One more 8.5 fix
1 parent 71feb8a commit 5c53ee0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Psalm/Type/Atomic/TLiteralFloat.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ public function getId(bool $exact = true, bool $nested = false): string
3535
if (!$exact) {
3636
return 'float';
3737
}
38+
if (is_nan($this->value)) {
39+
return 'float(NAN)';
40+
}
3841

3942
return 'float(' . $this->value . ')';
4043
}

0 commit comments

Comments
 (0)