fix typehint

This commit is contained in:
Dennis Eichhorn 2020-09-10 20:40:12 +02:00
parent 37640e8edf
commit f6e2883ff5
3 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

@ -167,11 +167,11 @@ class ExchangeLog implements \JsonSerializable, ArrayableInterface
/**
* Get created at.
*
* @return array
* @return DateTimeImmutable
*
* @since 1.0.0
*/
public function getCreatedAt() : \DateTimeInterfaceInterface
public function getCreatedAt() : \DateTimeImmutable
{
return $this->createdAt;
}