* [bug#56633,done,0.5h] Data type error.

This commit is contained in:
hufangzhou
2024-11-01 16:42:14 +08:00
committed by 朱金勇
parent e7abde11fe
commit d2902932f2
+3 -3
View File
@@ -442,11 +442,11 @@ class helper extends baseHelper
* @param string $characters
* @static
* @access public
* @return string
* @return float
*/
public static function formatHours($hours, $characters = '.0'): string
public static function formatHours($hours, $characters = '.0'): float
{
return rtrim(number_format((float)$hours, 2, '.', ''), $characters);
return (float)rtrim(number_format((float)$hours, 2, '.', ''), $characters);
}
}