Skip to content

Commit 2f76996

Browse files
authored
Merge pull request #63885 from nextcloud/backport/63876/stable35
[stable35] test(Sharing): Fix tests on 32-bits
2 parents 294f177 + 0dde655 commit 2f76996

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/lib/Sharing/AbstractSharingManagerTests.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,10 @@ 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) {
146-
throw new \RuntimeException('invalid timestamp: ' . $timestampMs);
146+
throw new \RuntimeException("invalid timestamp: $timestampMs");
147147
}
148148

149149
return $time;

0 commit comments

Comments
 (0)