Skip to content

Commit ca15124

Browse files
committed
One more 8.5 fix
1 parent 9d6db9e commit ca15124

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
@@ -33,6 +33,9 @@ public function getId(bool $exact = true, bool $nested = false): string
3333
if (!$exact) {
3434
return 'float';
3535
}
36+
if (is_nan($this->value)) {
37+
return 'float(NAN)';
38+
}
3639

3740
return 'float(' . $this->value . ')';
3841
}

0 commit comments

Comments
 (0)