We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71feb8a commit 5c53ee0Copy full SHA for 5c53ee0
1 file changed
src/Psalm/Type/Atomic/TLiteralFloat.php
@@ -35,6 +35,9 @@ public function getId(bool $exact = true, bool $nested = false): string
35
if (!$exact) {
36
return 'float';
37
}
38
+ if (is_nan($this->value)) {
39
+ return 'float(NAN)';
40
+ }
41
42
return 'float(' . $this->value . ')';
43
0 commit comments