From 04442546ba85c64168a005fc4dc438da03239ee6 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Tue, 1 Sep 2026 09:05:17 +0200 Subject: [PATCH] test(Sharing): Fix tests on 32-bits Signed-off-by: provokateurin --- tests/lib/Sharing/AbstractSharingManagerTests.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/lib/Sharing/AbstractSharingManagerTests.php b/tests/lib/Sharing/AbstractSharingManagerTests.php index 054746f6b582f..225f742bfe831 100644 --- a/tests/lib/Sharing/AbstractSharingManagerTests.php +++ b/tests/lib/Sharing/AbstractSharingManagerTests.php @@ -140,10 +140,10 @@ abstract protected function getShares( protected IFactory $l10nFactory; private function parseTime(mixed $timestampMs): \DateTimeImmutable { - $timestampMs = (int)$timestampMs; - $time = \DateTimeImmutable::createFromFormat('U.u', number_format((float)$timestampMs / 1000.0, 3, '.', '')); + $timestampMs = (float)$timestampMs; + $time = \DateTimeImmutable::createFromFormat('U.u', number_format($timestampMs / 1000.0, 3, '.', '')); if ($time === false) { - throw new \RuntimeException('invalid timestamp: ' . $timestampMs); + throw new \RuntimeException("invalid timestamp: $timestampMs"); } return $time;