Skip to content

Commit c764aa8

Browse files
phpstan
1 parent c0cbf2f commit c764aa8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
parameters:
2+
checkGenericClassInNonGenericObjectType: false
23
checkMissingIterableValueType: false
34
bootstrapFiles:
45
- phpstan-constants.php

src/Manager/ElasticsearchSnapshotManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ public function getByNameAndRepository(string $name, string $repository): ?Elast
2424
$snapshotModel = null;
2525
} elseif (true === isset($content['snapshots']) && 0 === count($content['snapshots'])) {
2626
$snapshotModel = null;
27-
} elseif (true === isset($content['responses']) && true === isset($snapshot['responses'][0]['error']['type']) && 'repository_exception' == $content['responses'][0]['error']['type']) {
27+
} elseif (true === isset($content['responses']) && true === isset($content['responses'][0]['error']['type']) && 'repository_exception' == $content['responses'][0]['error']['type']) {
2828
throw new CallException($content['responses'][0]['error']['reason']);
29-
} elseif (true === isset($content['responses']) && true === isset($snapshot['responses'][0]['error']['type']) && 'snapshot_missing_exception' == $content['responses'][0]['error']['type']) {
29+
} elseif (true === isset($content['responses']) && true === isset($content['responses'][0]['error']['type']) && 'snapshot_missing_exception' == $content['responses'][0]['error']['type']) {
3030
$snapshotModel = null;
3131
} else {
3232
if (true === isset($content['responses'])) {

0 commit comments

Comments
 (0)