diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-02-02 11:30:49 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-02-07 11:23:35 +0100 |
commit | c4d90f3e810bfc35756447e44aa9479d036779ac (patch) | |
tree | bcd4fd83147ba0518eeeeeaa3d5c0254b13c51c0 /lib | |
parent | 1765908c0366ce1ff65004473d57e4be724fac95 (diff) | |
download | nextcloud-server-c4d90f3e810bfc35756447e44aa9479d036779ac.tar.gz nextcloud-server-c4d90f3e810bfc35756447e44aa9479d036779ac.zip |
Removed catch of ValueError as we cannot know if it’s >2038 or <1970
Also fixed numericToString to correctly convert float to int if it fits
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/Util.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; } /** |