From c4d90f3e810bfc35756447e44aa9479d036779ac Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Thu, 2 Feb 2023 11:30:49 +0100 Subject: Removed catch of ValueError as we cannot know if it’s >2038 or <1970 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also fixed numericToString to correctly convert float to int if it fits Signed-off-by: Côme Chilliet --- lib/public/Util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/public') diff --git a/lib/public/Util.php b/lib/public/Util.php index 159e5d5585a..69eccbbc5f6 100644 --- a/lib/public/Util.php +++ b/lib/public/Util.php @@ -347,7 +347,7 @@ class Util { */ public static function numericToNumber(string|float|int $number): int|float { /* This is a hack to cast to (int|float) */ - return 0 + $number; + return 0 + (string)$number; } /** -- cgit v1.2.3