fix typehint

This commit is contained in:
Dennis Eichhorn 2020-09-10 20:40:13 +02:00
parent 58858e2f7d
commit 72b58006db
2 changed files with 4 additions and 4 deletions

View File

@ -406,11 +406,11 @@ class Task implements \JsonSerializable
} }
/** /**
* @return \DateTime * @return \DateTimeImmutable
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getCreatedAt() : \DateTimeInterface public function getCreatedAt() : \DateTimeImmutable
{ {
return $this->createdAt; return $this->createdAt;
} }

View File

@ -152,11 +152,11 @@ class TaskElement implements \JsonSerializable
} }
/** /**
* @return \DateTime * @return \DateTimeImmutable
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getCreatedAt() : \DateTimeInterface public function getCreatedAt() : \DateTimeImmutable
{ {
return $this->createdAt; return $this->createdAt;
} }