From 8337d2aa7d95fbc89b2b314bb9c9389675a0e047 Mon Sep 17 00:00:00 2001 From: Detlev Zundel Date: Sun, 14 Oct 2018 18:53:53 +0200 Subject: Fix lastModified to be a string rather than an integer. (#355) This fixes https://github.com/nextcloud/news/issues/350#issue-369283392 Signed-off-by: Detlev Zundel --- lib/Db/Feed.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/Db/Feed.php') diff --git a/lib/Db/Feed.php b/lib/Db/Feed.php index 898a93718..e6bd73481 100644 --- a/lib/Db/Feed.php +++ b/lib/Db/Feed.php @@ -46,8 +46,8 @@ class Feed extends Entity implements IAPI, \JsonSerializable protected $articlesPerUpdate = 0; /** @var string|null */ protected $httpLastModified = null; - /** @var int|null */ - protected $lastModified = 0; + /** @var string|null */ + protected $lastModified = '0'; /** @var string|null */ protected $httpEtag = null; /** @var string|null */ @@ -158,7 +158,7 @@ class Feed extends Entity implements IAPI, \JsonSerializable } /** - * @return int|null + * @return string|null */ public function getLastModified() { @@ -433,9 +433,9 @@ class Feed extends Entity implements IAPI, \JsonSerializable } /** - * @param int|null $lastModified + * @param string|null $lastModified */ - public function setLastModified(int $lastModified = null) + public function setLastModified(string $lastModified = null) { if ($this->lastModified !== $lastModified) { $this->lastModified = $lastModified; -- cgit v1.2.3