diff --git a/src/Driver/OpenSearch/OpenSearch.php b/src/Driver/OpenSearch/OpenSearch.php index 30bebef..d0945e4 100644 --- a/src/Driver/OpenSearch/OpenSearch.php +++ b/src/Driver/OpenSearch/OpenSearch.php @@ -89,7 +89,7 @@ protected function request(string $method, string $uri, mixed $body = null): std if ($e instanceof HttpTransportException) { continue; } - if ($e instanceof HttpErrorResponseException && $e->getCode() >= 500 || in_array($e->getCode(), [404, 408])) { + if ($e instanceof HttpErrorResponseException && ($e->getCode() >= 500 || in_array($e->getCode(), [404, 408]))) { continue; } throw $e;