fix empty attributes error

This commit is contained in:
Yuri Kuznetsov
2023-09-09 10:03:42 +03:00
parent 0695fd87c0
commit 7ee08a6713
+1 -1
View File
@@ -76,7 +76,7 @@ class EntityDefs
public function getAttributeNameList(): array
{
/** @var string[] */
return array_keys($this->data['attributes']);
return array_keys($this->data['attributes'] ?? []);
}
/**