Update fromArray return type to static

This commit is contained in:
netkas 2024-09-03 11:35:09 -04:00
parent 99c4284ce1
commit 047db90ff5

View file

@ -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): Entity
public static function fromArray(array $data): static
{
return new static($data);
}