From 920ecd57748f3f7e8d7971cb959fccd4729b226b Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 10 Sep 2020 20:40:12 +0200 Subject: [PATCH] fix typehint --- Models/Calendar.php | 4 ++-- Models/Event.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Models/Calendar.php b/Models/Calendar.php index 3a54433..f4e7bfd 100755 --- a/Models/Calendar.php +++ b/Models/Calendar.php @@ -196,11 +196,11 @@ class Calendar } /** - * @return \DateTime + * @return \DateTimeImmutable * * @since 1.0.0 */ - public function getCreatedAt() : \DateTimeInterface + public function getCreatedAt() : \DateTimeImmutable { return $this->createdAt; } diff --git a/Models/Event.php b/Models/Event.php index f5ea39a..8115971 100755 --- a/Models/Event.php +++ b/Models/Event.php @@ -238,11 +238,11 @@ class Event } /** - * @return \DateTime + * @return \DateTimeImmutable * * @since 1.0.0 */ - public function getCreatedAt() : \DateTimeInterface + public function getCreatedAt() : \DateTimeImmutable { return $this->createdAt; }