diff --git a/src/IndexService/Config/AbstractConfig.php b/src/IndexService/Config/AbstractConfig.php index e416de89..867e55a3 100644 --- a/src/IndexService/Config/AbstractConfig.php +++ b/src/IndexService/Config/AbstractConfig.php @@ -26,23 +26,23 @@ abstract class AbstractConfig implements ConfigInterface { protected string $tenantName; - protected array $attributeConfig; + protected array $attributeConfig = []; - protected array $searchAttributeConfig; + protected array $searchAttributeConfig = []; protected ?AttributeFactory $attributeFactory = null; protected array $attributes = []; - protected array $searchAttributes; + protected array $searchAttributes = []; - protected array $filterTypes; + protected array $filterTypes = []; protected ?WorkerInterface $tenantWorker = null; protected ?array $filterTypeConfig = null; - protected array $options; + protected array $options = []; /** * @param array[]|Attribute[] $attributes diff --git a/src/IndexService/Config/ElasticSearch.php b/src/IndexService/Config/ElasticSearch.php index 33fae084..23c1f447 100644 --- a/src/IndexService/Config/ElasticSearch.php +++ b/src/IndexService/Config/ElasticSearch.php @@ -75,9 +75,9 @@ class ElasticSearch extends AbstractConfig implements MockupConfigInterface, Ela public function __construct( AttributeFactory $attributeFactory, string $tenantName, - array $attributes, - array $searchAttributes, - array $filterTypes, + array $attributes = [], + array $searchAttributes = [], + array $filterTypes = [], array $options = [], iterable $synonymProviders = [] ) {