Corrected BackgroundTypeFill.php

This commit is contained in:
netkas 2024-10-03 21:18:55 -04:00
parent 0395f3d32a
commit 3ed338d49a

View file

@ -49,7 +49,10 @@ class BackgroundTypeFill extends BackgroundType implements ObjectTypeInterface
*/ */
public static function fromArray(?array $data): ?BackgroundTypeFill public static function fromArray(?array $data): ?BackgroundTypeFill
{ {
if() if($data === null)
{
return null;
}
$object = new self(); $object = new self();
$object->type = type::FILL; $object->type = type::FILL;