From 4c1384f64b2dc33271d887eea53f11e5e5c0b805 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 10 Sep 2020 20:40:13 +0200 Subject: [PATCH] fix typehint --- Account/Account.php | 4 ++-- System/File/ContainerInterface.php | 4 ++-- System/File/Ftp/FileAbstract.php | 2 +- System/File/Local/FileAbstract.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Account/Account.php b/Account/Account.php index a22ed09a6..a7a512170 100644 --- a/Account/Account.php +++ b/Account/Account.php @@ -435,11 +435,11 @@ class Account implements \JsonSerializable, ArrayableInterface /** * Get created at. * - * @return \DateTimeInterface + * @return \DateTimeImmutable * * @since 1.0.0 */ - public function getCreatedAt() : \DateTimeInterface + public function getCreatedAt() : \DateTimeImmutable { return $this->createdAt; } diff --git a/System/File/ContainerInterface.php b/System/File/ContainerInterface.php index 834720048..c67c11623 100644 --- a/System/File/ContainerInterface.php +++ b/System/File/ContainerInterface.php @@ -124,11 +124,11 @@ interface ContainerInterface /** * Get the datetime when the resource got created. * - * @return \DateTime + * @return \DateTimeImmutable * * @since 1.0.0 */ - public function getCreatedAt() : \DateTimeInterface; + public function getCreatedAt() : \DateTimeImmutable; /** * Get the datetime when the resource got last modified. diff --git a/System/File/Ftp/FileAbstract.php b/System/File/Ftp/FileAbstract.php index d0f782f60..f073770f2 100644 --- a/System/File/Ftp/FileAbstract.php +++ b/System/File/Ftp/FileAbstract.php @@ -151,7 +151,7 @@ abstract class FileAbstract implements ContainerInterface /** * {@inheritdoc} */ - public function getCreatedAt() : \DateTimeInterface + public function getCreatedAt() : \DateTimeImmutable { return $this->createdAt; } diff --git a/System/File/Local/FileAbstract.php b/System/File/Local/FileAbstract.php index d350ffe29..3cb1a51d3 100644 --- a/System/File/Local/FileAbstract.php +++ b/System/File/Local/FileAbstract.php @@ -151,7 +151,7 @@ abstract class FileAbstract implements ContainerInterface /** * {@inheritdoc} */ - public function getCreatedAt() : \DateTimeInterface + public function getCreatedAt() : \DateTimeImmutable { return $this->createdAt; }