From 0464395e26d3690757e9441f7462f2f7c686cd07 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 26 Sep 2020 11:22:57 +0200 Subject: [PATCH] fix DateTimeImmutable typehint --- Interfaces/GSD/Model/GSDArticle.php | 2 +- Interfaces/GSD/Model/GSDCostCenter.php | 2 +- Interfaces/GSD/Model/GSDCostObject.php | 2 +- Interfaces/GSD/Model/GSDCustomer.php | 2 +- Interfaces/GSD/Model/GSDSupplier.php | 2 +- Models/ExchangeLog.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Interfaces/GSD/Model/GSDArticle.php b/Interfaces/GSD/Model/GSDArticle.php index 892a622..ec74fe3 100755 --- a/Interfaces/GSD/Model/GSDArticle.php +++ b/Interfaces/GSD/Model/GSDArticle.php @@ -35,7 +35,7 @@ final class GSDArticle /** * Create at. * - * @var \DateTime + * @var \DateTimeImmutable * @since 1.0.0 */ private \DateTimeImmutable $createdAt; diff --git a/Interfaces/GSD/Model/GSDCostCenter.php b/Interfaces/GSD/Model/GSDCostCenter.php index 8bf7647..e64d8d1 100755 --- a/Interfaces/GSD/Model/GSDCostCenter.php +++ b/Interfaces/GSD/Model/GSDCostCenter.php @@ -43,7 +43,7 @@ final class GSDCostCenter implements \JsonSerializable /** * Created. * - * @var \DateTime + * @var \DateTimeImmutable * @since 1.0.0 */ protected \DateTimeImmutable $createdAt; diff --git a/Interfaces/GSD/Model/GSDCostObject.php b/Interfaces/GSD/Model/GSDCostObject.php index cd12e06..de36792 100755 --- a/Interfaces/GSD/Model/GSDCostObject.php +++ b/Interfaces/GSD/Model/GSDCostObject.php @@ -43,7 +43,7 @@ final class GSDCostObject implements \JsonSerializable /** * Created. * - * @var \DateTime + * @var \DateTimeImmutable * @since 1.0.0 */ protected \DateTimeImmutable $createdAt; diff --git a/Interfaces/GSD/Model/GSDCustomer.php b/Interfaces/GSD/Model/GSDCustomer.php index 1426a10..eb343ef 100755 --- a/Interfaces/GSD/Model/GSDCustomer.php +++ b/Interfaces/GSD/Model/GSDCustomer.php @@ -43,7 +43,7 @@ final class GSDCustomer /** * Created. * - * @var \DateTime + * @var \DateTimeImmutable * @since 1.0.0 */ protected \DateTimeImmutable $createdAt; diff --git a/Interfaces/GSD/Model/GSDSupplier.php b/Interfaces/GSD/Model/GSDSupplier.php index 96b8b1e..2237eb1 100755 --- a/Interfaces/GSD/Model/GSDSupplier.php +++ b/Interfaces/GSD/Model/GSDSupplier.php @@ -43,7 +43,7 @@ final class GSDSupplier /** * Created. * - * @var \DateTime + * @var \DateTimeImmutable * @since 1.0.0 */ protected \DateTimeImmutable $createdAt; diff --git a/Models/ExchangeLog.php b/Models/ExchangeLog.php index 3181e68..28f7482 100644 --- a/Models/ExchangeLog.php +++ b/Models/ExchangeLog.php @@ -73,7 +73,7 @@ class ExchangeLog implements \JsonSerializable, ArrayableInterface */ public function __construct() { - $this->createdAt = new \DateTimeImmutableImmutable('now'); + $this->createdAt = new \DateTimeImmutable('now'); } /**