fix typehint

This commit is contained in:
Dennis Eichhorn 2020-09-10 20:40:13 +02:00
parent bea2d1ed0b
commit 4c1384f64b
4 changed files with 6 additions and 6 deletions

View File

@ -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;
}

View File

@ -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.

View File

@ -151,7 +151,7 @@ abstract class FileAbstract implements ContainerInterface
/**
* {@inheritdoc}
*/
public function getCreatedAt() : \DateTimeInterface
public function getCreatedAt() : \DateTimeImmutable
{
return $this->createdAt;
}

View File

@ -151,7 +151,7 @@ abstract class FileAbstract implements ContainerInterface
/**
* {@inheritdoc}
*/
public function getCreatedAt() : \DateTimeInterface
public function getCreatedAt() : \DateTimeImmutable
{
return $this->createdAt;
}