Update return type of fromArray method to Entity

This commit is contained in:
netkas 2024-09-03 11:38:35 -04:00
parent 5f06cc4e6e
commit d76074d9dc

View file

@ -108,7 +108,7 @@ abstract class Entity implements SerializableInterface
* *
* @param array $data The data to construct the entity from. * @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); return new static($data);
} }