Skip to content

Commit

Permalink
Add int casting in getLogCleanTime, issue #949 (#1770)
Browse files Browse the repository at this point in the history
Co-authored-by: Fabrizio Balliano <fabrizio@fabrizioballiano.com>
  • Loading branch information
fballiano and fballiano authored Aug 7, 2021
1 parent ea0f8e5 commit 02c01c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/core/Mage/Log/Model/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ protected function _construct()
}

/**
* @return float|int
* @return int
*/
public function getLogCleanTime()
{
return Mage::getStoreConfig(self::XML_LOG_CLEAN_DAYS) * 60 * 60 * 24;
return (int)Mage::getStoreConfig(self::XML_LOG_CLEAN_DAYS) * 60 * 60 * 24;
}

/**
Expand Down

0 comments on commit 02c01c1

Please sign in to comment.