summaryrefslogtreecommitdiff
path: root/src/engine/VyOSElasticModernFulltextStorageEngine.php
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@vyos.io>2026-05-23 15:08:18 +0300
committerYuriy Andamasov <yuriy@vyos.io>2026-05-23 15:08:18 +0300
commite36bce7dee75eccf67ae4737452275a6a01d7bb9 (patch)
treee15c2246a513628a0ed7f366072cb06c130d15f0 /src/engine/VyOSElasticModernFulltextStorageEngine.php
parent5dcca86551f1d2a0f8b96bff5a5aa84573c14dce (diff)
downloadphorge-elasticsearch-modern-e36bce7dee75eccf67ae4737452275a6a01d7bb9.tar.gz
phorge-elasticsearch-modern-e36bce7dee75eccf67ae4737452275a6a01d7bb9.zip
fix: use correct HTTPFutureResponseStatus in indexExists() catch clause
Phase 0 CodeRabbit caught a typo — HTTPFutureHTTPResponseStatus does not exist in the libphutil type hierarchy; the correct class is HTTPFutureResponseStatus (consistent with line 257 in executeRequest()). 🤖 Generated by [robots](https://vyos.io)
Diffstat (limited to 'src/engine/VyOSElasticModernFulltextStorageEngine.php')
-rw-r--r--src/engine/VyOSElasticModernFulltextStorageEngine.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/VyOSElasticModernFulltextStorageEngine.php b/src/engine/VyOSElasticModernFulltextStorageEngine.php
index 70844f9..4c14ce0 100644
--- a/src/engine/VyOSElasticModernFulltextStorageEngine.php
+++ b/src/engine/VyOSElasticModernFulltextStorageEngine.php
@@ -436,7 +436,7 @@ abstract class VyOSElasticModernFulltextStorageEngine
try {
$res = $this->executeRequest($host, '/_stats/', array());
return isset($res['indices'][$this->index]);
- } catch (HTTPFutureHTTPResponseStatus $e) {
+ } catch (HTTPFutureResponseStatus $e) {
if ($e->getStatusCode() == 404) {
return false;
}