From d76074d9dcf5754b06d95e1df9434e7d830ca91d Mon Sep 17 00:00:00 2001 From: netkas Date: Tue, 3 Sep 2024 11:38:35 -0400 Subject: [PATCH] Update return type of fromArray method to Entity --- src/Socialbox/Abstracts/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Socialbox/Abstracts/Entity.php b/src/Socialbox/Abstracts/Entity.php index c4d6dff..03dbab7 100644 --- a/src/Socialbox/Abstracts/Entity.php +++ b/src/Socialbox/Abstracts/Entity.php @@ -108,7 +108,7 @@ abstract class Entity implements SerializableInterface * * @param array $data The data to construct the entity from. */ - public static function fromArray(array $data): static + public static function fromArray(array $data): Entity { return new static($data); }