Skip to content

Commit 28c6919

Browse files
committed
Fix "Non-canonical cast (double) is deprecated" in PHP 8.5
1 parent a482374 commit 28c6919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/php/math/BigNum.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function floatValue(): float { return (float)$this->num; }
6363
* @deprecated Use floatValue() instead
6464
* @return double
6565
*/
66-
public function doubleValue() { return (double)$this->num; }
66+
public function doubleValue() { return (float)$this->num; }
6767

6868
/** @return string */
6969
public function __toString() { return (string)$this->num; }

0 commit comments

Comments
 (0)