Skip to content

Commit

Permalink
fix lowest version of elastic-query
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub-Fajkus committed Feb 8, 2022
1 parent 1a75ca8 commit 3631769
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"php": ">=7.4",
"ext-json": "*",
"ext-curl": "*",
"spameri/elastic-query": "^v1.0.0-alpha.10",
"spameri/elastic-query": "^v1.0.0-alpha.13",
"elasticsearch/elasticsearch": "^7.12.0",
"nette/di": "^3.0.5",
"nette/utils": "^3.2.5",
Expand Down
9 changes: 0 additions & 9 deletions phpstan-low.neon
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,6 @@ parameters:
ignoreErrors:
- '#PHPDoc tag \@throws with type Elasticsearch\\Common\\Exceptions\\ElasticsearchException is not subtype of Throwable#'
- '#Call to function array_key_exists\(\) with string and array<int, mixed> will always evaluate to false.#'
-
message: "#^Call to method addSetup\\(\\) on an unknown class Nette\\\\DI\\\\Definitions\\\\ServiceDefinition\\.$#"
count: 1
path: src/DI/SpameriElasticSearchExtension.php

-
message: "#^PHPDoc tag @var for variable \\$definition contains unknown class Nette\\\\DI\\\\Definitions\\\\ServiceDefinition\\.$#"
count: 1
path: src/DI/SpameriElasticSearchExtension.php

-
message: "#^Method Spameri\\\\Elastic\\\\Diagnostics\\\\PanelLogger\\:\\:emergency\\(\\) should return null but return statement is missing\\.$#"
Expand Down
6 changes: 3 additions & 3 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ parameters:
path: src/Model/TypeToNewIndex/Migrate.php

-
message: "#^Static method Nette\\\\DI\\\\Compiler\\:\\:loadDefinitions\\(\\) invoked with 3 parameters, 0 required\\.$#"
count: 1
path: src/DI/SpameriElasticSearchExtension.php
message: "#^Unable to resolve the template type T in call to method Nette\\\\DI\\\\Container\\:\\:getByType\\(\\)$#"
count: 2
path: src/Model/ServiceLocator.php


checkGenericClassInNonGenericObjectType: false
Expand Down
1 change: 1 addition & 0 deletions src/Entity/Collection/AbstractElasticEntityCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public function initialize(): void
$entities = $this->service->getAllBy(
new \Spameri\ElasticQuery\ElasticQuery(
new \Spameri\ElasticQuery\Query\QueryCollection(
NULL,
new \Spameri\ElasticQuery\Query\MustCollection(
new \Spameri\ElasticQuery\Query\Terms(
'_id',
Expand Down

0 comments on commit 3631769

Please sign in to comment.