diff options
author | anoy <anoymouserver+github@mailbox.org> | 2021-05-04 17:57:07 +0200 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2021-05-05 12:11:13 +0200 |
commit | d530500a5b61cf969fe4631cff9571c023517415 (patch) | |
tree | f0333a06b1a5912080c7ff9e5862476bf5cdea22 /lib/Service/ItemServiceV2.php | |
parent | ea074d0ee5c2d8e44de405aff5f5a849887adc21 (diff) |
mitigate 32-bit issues with microseconds
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
Diffstat (limited to 'lib/Service/ItemServiceV2.php')
-rw-r--r-- | lib/Service/ItemServiceV2.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Service/ItemServiceV2.php b/lib/Service/ItemServiceV2.php index 57804a8c3..c69571b1c 100644 --- a/lib/Service/ItemServiceV2.php +++ b/lib/Service/ItemServiceV2.php @@ -271,12 +271,12 @@ class ItemServiceV2 extends Service * Returns all new items in a feed * @param string $userId the name of the user * @param int $feedId the id of the feed - * @param int $updatedSince a timestamp with the minimal modification date + * @param float $updatedSince a timestamp with the minimal modification date * @param boolean $hideRead if unread items should also be returned * * @return array of items */ - public function findAllInFeedAfter(string $userId, int $feedId, int $updatedSince, bool $hideRead): array + public function findAllInFeedAfter(string $userId, int $feedId, float $updatedSince, bool $hideRead): array { return $this->mapper->findAllInFeedAfter($userId, $feedId, $updatedSince, $hideRead); } @@ -285,12 +285,12 @@ class ItemServiceV2 extends Service * Returns all new items in a folder * @param string $userId the name of the user * @param int|null $folderId the id of the folder - * @param int $updatedSince a timestamp with the minimal modification date + * @param float $updatedSince a timestamp with the minimal modification date * @param boolean $hideRead if unread items should also be returned * * @return array of items */ - public function findAllInFolderAfter(string $userId, ?int $folderId, int $updatedSince, bool $hideRead): array + public function findAllInFolderAfter(string $userId, ?int $folderId, float $updatedSince, bool $hideRead): array { return $this->mapper->findAllInFolderAfter($userId, $folderId, $updatedSince, $hideRead); } @@ -300,13 +300,13 @@ class ItemServiceV2 extends Service * * @param string $userId the name of the user * @param int $feedType the type of feed items to fetch. (starred || unread) - * @param int $updatedSince a timestamp with the minimal modification date + * @param float $updatedSince a timestamp with the minimal modification date * * @return array of items * * @throws ServiceValidationException */ - public function findAllAfter(string $userId, int $feedType, int $updatedSince): array + public function findAllAfter(string $userId, int $feedType, float $updatedSince): array { if (!in_array($feedType, [ListType::STARRED, ListType::UNREAD, ListType::ALL_ITEMS], true)) { throw new ServiceValidationException('Trying to find in unknown type'); |