From 99c4284ce11612fa0c9c2c939b91fb2cde5c76ab Mon Sep 17 00:00:00 2001 From: netkas Date: Tue, 3 Sep 2024 11:34:30 -0400 Subject: [PATCH] Change fromArray() return type to static in SerializableInterface --- src/Socialbox/Interfaces/SerializableInterface.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Socialbox/Interfaces/SerializableInterface.php b/src/Socialbox/Interfaces/SerializableInterface.php index 3f73ab5..90b1c4f 100644 --- a/src/Socialbox/Interfaces/SerializableInterface.php +++ b/src/Socialbox/Interfaces/SerializableInterface.php @@ -2,8 +2,6 @@ namespace Socialbox\Interfaces; -use Socialbox\Abstracts\Entity; - interface SerializableInterface { /** @@ -18,5 +16,5 @@ interface SerializableInterface * * @param array $data The data to construct the object from. */ - public static function fromArray(array $data): Entity; + public static function fromArray(array $data): static; } \ No newline at end of file