Skip to content

Commit b7a1034

Browse files
committed
fixup! Compatibility with Elastic 2 up to 7
1 parent 7ab667a commit b7a1034

1 file changed

Lines changed: 35 additions & 3 deletions

File tree

phpstan.neon

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,41 @@ parameters:
33
- %rootDir%/../../../tests/tmp/*
44

55
ignoreErrors:
6-
- '#PHPDoc tag \@throws with type Elasticsearch\\Common\\Exceptions\\ElasticsearchException is not subtype of Throwable#'
7-
- '#Call to function array_key_exists\(\) with string and array<int, mixed> will always evaluate to false.#'
8-
- '#Static method Nette\\DI\\Compiler\:\:loadDefinitions\(\) invoked with 3 parameters, 0 required.#'
6+
-
7+
message: "#^PHPDoc tag @throws with type Elasticsearch\\\\Common\\\\Exceptions\\\\ElasticsearchException is not subtype of Throwable$#"
8+
count: 1
9+
path: src/ClientProvider.php
10+
11+
-
12+
message: "#^PHPDoc tag @throws with type Elasticsearch\\\\Common\\\\Exceptions\\\\ElasticsearchException is not subtype of Throwable$#"
13+
count: 1
14+
path: src/Commands/TypeToNewIndex.php
15+
16+
-
17+
message: "#^Call to method addSetup\\(\\) on an unknown class Nette\\\\DI\\\\Definitions\\\\ServiceDefinition\\.$#"
18+
count: 1
19+
path: src/DI/SpameriElasticSearchExtension.php
20+
21+
-
22+
message: "#^PHPDoc tag @var for variable \\$definition contains unknown class Nette\\\\DI\\\\Definitions\\\\ServiceDefinition\\.$#"
23+
count: 1
24+
path: src/DI/SpameriElasticSearchExtension.php
25+
26+
-
27+
message: "#^Call to function array_key_exists\\(\\) with string and array\\<int, mixed\\> will always evaluate to false\\.$#"
28+
count: 1
29+
path: src/Entity/Collection/AbstractElasticEntityCollection.php
30+
31+
-
32+
message: "#^Call to function array_key_exists\\(\\) with string and array\\<int, mixed\\> will always evaluate to false\\.$#"
33+
count: 1
34+
path: src/Entity/Collection/AbstractEntityCollection.php
35+
36+
-
37+
message: "#^PHPDoc tag @throws with type Elasticsearch\\\\Common\\\\Exceptions\\\\ElasticsearchException is not subtype of Throwable$#"
38+
count: 2
39+
path: src/Model/TypeToNewIndex/Migrate.php
40+
941

1042
checkGenericClassInNonGenericObjectType: false
1143
checkMissingIterableValueType: false

0 commit comments

Comments
 (0)