Change fromArray() return type to static in SerializableInterface
This commit is contained in:
parent
946e8bec9e
commit
99c4284ce1
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
Loading…
Add table
Reference in a new issue