From c15a3e53405d6ae2267e99667301a04ea58da583 Mon Sep 17 00:00:00 2001 From: Yassine Guedidi Date: Sun, 8 May 2022 14:12:35 +0200 Subject: [PATCH] Fix DateTime case --- src/Wallabag/CoreBundle/Entity/Entry.php | 4 ++-- tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Wallabag/CoreBundle/Entity/Entry.php b/src/Wallabag/CoreBundle/Entity/Entry.php index f4e988e2b..5a00c0dbe 100644 --- a/src/Wallabag/CoreBundle/Entity/Entry.php +++ b/src/Wallabag/CoreBundle/Entity/Entry.php @@ -881,7 +881,7 @@ class Entry } /** - * @return \Datetime + * @return \DateTime */ public function getPublishedAt() { @@ -891,7 +891,7 @@ class Entry /** * @return Entry */ - public function setPublishedAt(\Datetime $publishedAt) + public function setPublishedAt(\DateTime $publishedAt) { $this->publishedAt = $publishedAt; diff --git a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php index 54c992cc0..4644912fc 100644 --- a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php +++ b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php @@ -462,7 +462,7 @@ class ContentProxyTest extends TestCase $this->assertContains('no-cache', $entry->getHeaders()); } - public function testWithForcedContentAndDatetime() + public function testWithForcedContentAndDateTime() { $tagger = $this->getTaggerMock(); $tagger->expects($this->once())