fixes #2066 keep Smarty compatible with PHP 7.0

This commit is contained in:
plegall
2023-12-13 15:06:38 +01:00
parent c0e7e9c87f
commit bf9a48f63d
3 changed files with 4 additions and 4 deletions
@@ -19,7 +19,7 @@
*
* @return string
*/
function smarty_modifier_number_format(?float $num, int $decimals = 0, ?string $decimal_separator = ".", ?string $thousands_separator = ",")
function smarty_modifier_number_format($num, int $decimals = 0, $decimal_separator = ".", $thousands_separator = ",")
{
// provide $num default to prevent deprecation errors in PHP >=8.1
return number_format($num ?? 0.0, $decimals, $decimal_separator, $thousands_separator);