From 4f7993750cd1380699c105f0b52a684d49dbf06b Mon Sep 17 00:00:00 2001 From: User Date: Tue, 18 Feb 2025 01:08:03 +0300 Subject: [PATCH] 20250218#2 --- src/Entity/AbstractEntity.php | 2 +- src/Entity/EntityInterface.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Entity/AbstractEntity.php b/src/Entity/AbstractEntity.php index fca136c..acb4e86 100644 --- a/src/Entity/AbstractEntity.php +++ b/src/Entity/AbstractEntity.php @@ -5,7 +5,7 @@ namespace Rmphp\Storage\Entity; abstract class AbstractEntity implements EntityInterface { /** - * @return int|null + * @return mixed */ public function getId(): mixed { return (isset($this->id)) ? (($this->id instanceof ValueObjectInterface) ? $this->id->get() : $this->id) : null; diff --git a/src/Entity/EntityInterface.php b/src/Entity/EntityInterface.php index 6639e60..715c7d0 100644 --- a/src/Entity/EntityInterface.php +++ b/src/Entity/EntityInterface.php @@ -11,7 +11,7 @@ namespace Rmphp\Storage\Entity; interface EntityInterface { /** - * @return int|null + * @return mixed */ public function getId(): mixed;