Skip to content

Commit

Permalink
TypeError: round(): Argument #1 ($num) must be of type int|float
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel committed Dec 8, 2022
1 parent 66f96b4 commit bcd4e1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library/Zend/Db/Profiler/Firebug.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function queryEnd($queryId)

$this->_totalElapsedTime += $profile->getElapsedSecs();

$this->_message->addRow([(string)round($profile->getElapsedSecs(),5),
$this->_message->addRow([(string)round((float)$profile->getElapsedSecs(),5),
$profile->getQuery(),
($params=$profile->getQueryParams())?$params:null]);

Expand Down
4 changes: 2 additions & 2 deletions library/Zend/Locale/Math.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ public static function isBcmathDisabled()
public static function round($op1, $precision = 0)
{
if (self::$_bcmathDisabled) {
$op1 = round($op1, $precision);
$op1 = round((float)$op1, $precision);
if (strpos((string) $op1, 'E') === false) {
return self::normalize(round($op1, $precision));
return self::normalize(round((float)$op1, $precision));
}
}

Expand Down

0 comments on commit bcd4e1c

Please sign in to comment.