Update fromArray return type to static
This commit is contained in:
parent
99c4284ce1
commit
047db90ff5
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.
|
* @param array $data The data to construct the entity from.
|
||||||
*/
|
*/
|
||||||
public static function fromArray(array $data): Entity
|
public static function fromArray(array $data): static
|
||||||
{
|
{
|
||||||
return new static($data);
|
return new static($data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue