Fix DateTime case

This commit is contained in:
Yassine Guedidi 2022-05-08 14:12:35 +02:00
parent d510dc6c98
commit c15a3e5340
2 changed files with 3 additions and 3 deletions

View file

@ -881,7 +881,7 @@ class Entry
} }
/** /**
* @return \Datetime * @return \DateTime
*/ */
public function getPublishedAt() public function getPublishedAt()
{ {
@ -891,7 +891,7 @@ class Entry
/** /**
* @return Entry * @return Entry
*/ */
public function setPublishedAt(\Datetime $publishedAt) public function setPublishedAt(\DateTime $publishedAt)
{ {
$this->publishedAt = $publishedAt; $this->publishedAt = $publishedAt;

View file

@ -462,7 +462,7 @@ class ContentProxyTest extends TestCase
$this->assertContains('no-cache', $entry->getHeaders()); $this->assertContains('no-cache', $entry->getHeaders());
} }
public function testWithForcedContentAndDatetime() public function testWithForcedContentAndDateTime()
{ {
$tagger = $this->getTaggerMock(); $tagger = $this->getTaggerMock();
$tagger->expects($this->once()) $tagger->expects($this->once())