Skip to content

Commit 3631769

Browse files
committed
fix lowest version of elastic-query
1 parent 1a75ca8 commit 3631769

File tree

4 files changed

+5
-13
lines changed

4 files changed

+5
-13
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"php": ">=7.4",
2828
"ext-json": "*",
2929
"ext-curl": "*",
30-
"spameri/elastic-query": "^v1.0.0-alpha.10",
30+
"spameri/elastic-query": "^v1.0.0-alpha.13",
3131
"elasticsearch/elasticsearch": "^7.12.0",
3232
"nette/di": "^3.0.5",
3333
"nette/utils": "^3.2.5",

phpstan-low.neon

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@ parameters:
1111
ignoreErrors:
1212
- '#PHPDoc tag \@throws with type Elasticsearch\\Common\\Exceptions\\ElasticsearchException is not subtype of Throwable#'
1313
- '#Call to function array_key_exists\(\) with string and array<int, mixed> will always evaluate to false.#'
14-
-
15-
message: "#^Call to method addSetup\\(\\) on an unknown class Nette\\\\DI\\\\Definitions\\\\ServiceDefinition\\.$#"
16-
count: 1
17-
path: src/DI/SpameriElasticSearchExtension.php
18-
19-
-
20-
message: "#^PHPDoc tag @var for variable \\$definition contains unknown class Nette\\\\DI\\\\Definitions\\\\ServiceDefinition\\.$#"
21-
count: 1
22-
path: src/DI/SpameriElasticSearchExtension.php
2314

2415
-
2516
message: "#^Method Spameri\\\\Elastic\\\\Diagnostics\\\\PanelLogger\\:\\:emergency\\(\\) should return null but return statement is missing\\.$#"

phpstan.neon

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ parameters:
2929
path: src/Model/TypeToNewIndex/Migrate.php
3030

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

3636

3737
checkGenericClassInNonGenericObjectType: false

src/Entity/Collection/AbstractElasticEntityCollection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public function initialize(): void
7272
$entities = $this->service->getAllBy(
7373
new \Spameri\ElasticQuery\ElasticQuery(
7474
new \Spameri\ElasticQuery\Query\QueryCollection(
75+
NULL,
7576
new \Spameri\ElasticQuery\Query\MustCollection(
7677
new \Spameri\ElasticQuery\Query\Terms(
7778
'_id',

0 commit comments

Comments
 (0)