Skip to content

Commit 1c4f517

Browse files
committed
test(Sharing): Fix tests on 32-bits
Signed-off-by: provokateurin <kate@provokateurin.de>
1 parent 31b2c78 commit 1c4f517

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/lib/Sharing/AbstractSharingManagerTests.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ abstract protected function getShares(
140140
protected IFactory $l10nFactory;
141141

142142
private function parseTime(mixed $timestampMs): \DateTimeImmutable {
143-
$timestampMs = (int)$timestampMs;
144-
$time = \DateTimeImmutable::createFromFormat('U.u', number_format((float)$timestampMs / 1000.0, 3, '.', ''));
143+
$timestampMs = (float)$timestampMs;
144+
$time = \DateTimeImmutable::createFromFormat('U.u', number_format($timestampMs / 1000.0, 3, '.', ''));
145145
if ($time === false) {
146146
throw new \RuntimeException('invalid timestamp: ' . $timestampMs);
147147
}

0 commit comments

Comments
 (0)