Skip to content

Commit c914c1c

Browse files
committed
Merge pull request elastic#423 from segadora/patch-1
[DOCS] Php typos
1 parent 006bdb6 commit c914c1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/configuration.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ try {
8888
$client->search($searchParams);
8989
} catch (Elasticsearch\Common\Exceptions\Curl\CouldNotConnectToHost $e) {
9090
$previous = $e->getPrevious();
91-
if ($previous instanceof Elasticsearch\Common\Exceptions\MaxRetriesException) {
91+
if ($previous instanceof 'Elasticsearch\Common\Exceptions\MaxRetriesException') {
9292
echo "Max retries!";
9393
}
9494
}
@@ -109,7 +109,7 @@ try {
109109
$client->search($searchParams);
110110
} catch (Elasticsearch\Common\Exceptions\TransportException $e) {
111111
$previous = $e->getPrevious();
112-
if ($previous instanceof Elasticsearch\Common\Exceptions\MaxRetriesException) {
112+
if ($previous instanceof 'Elasticsearch\Common\Exceptions\MaxRetriesException') {
113113
echo "Max retries!";
114114
}
115115
}

0 commit comments

Comments
 (0)