Update return type of fromArray method to Entity
This commit is contained in:
parent
5f06cc4e6e
commit
d76074d9dc
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue