From cefb6595e9864b9c81678ee4523d92447ddd632f Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 10 Sep 2020 20:40:12 +0200 Subject: [PATCH] fix typehint --- Models/NewsArticle.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Models/NewsArticle.php b/Models/NewsArticle.php index 52f456b..c5e2191 100755 --- a/Models/NewsArticle.php +++ b/Models/NewsArticle.php @@ -228,11 +228,11 @@ class NewsArticle implements \JsonSerializable, ArrayableInterface /** * Get date of creation * - * @return \DateTime + * @return \DateTimeImmutable * * @since 1.0.0 */ - public function getCreatedAt() : \DateTimeInterface + public function getCreatedAt() : \DateTimeImmutable { return $this->createdAt; }