diff options
| author | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-23 15:08:18 +0300 |
|---|---|---|
| committer | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-23 15:08:18 +0300 |
| commit | e36bce7dee75eccf67ae4737452275a6a01d7bb9 (patch) | |
| tree | e15c2246a513628a0ed7f366072cb06c130d15f0 /src/engine/VyOSElasticModernFulltextStorageEngine.php | |
| parent | 5dcca86551f1d2a0f8b96bff5a5aa84573c14dce (diff) | |
| download | phorge-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.php | 2 |
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; } |
