Skip to content

Commit

Permalink
[IndexService] Fix default properties in configs - resolves #113
Browse files Browse the repository at this point in the history
  • Loading branch information
dvesh3 committed Aug 3, 2023
1 parent c918aa1 commit 28dcb14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/IndexService/Config/AbstractConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/IndexService/Config/ElasticSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
) {
Expand Down

0 comments on commit 28dcb14

Please sign in to comment.