From 42a1446ce72f723b7f1893fdd55f51ac2114a278 Mon Sep 17 00:00:00 2001 From: Enrico Zimuel Date: Tue, 27 Aug 2019 11:59:56 +0200 Subject: [PATCH] Fix #940 --- src/Elasticsearch/Namespaces/IndicesNamespace.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Elasticsearch/Namespaces/IndicesNamespace.php b/src/Elasticsearch/Namespaces/IndicesNamespace.php index ef0938317..9dd2badc6 100644 --- a/src/Elasticsearch/Namespaces/IndicesNamespace.php +++ b/src/Elasticsearch/Namespaces/IndicesNamespace.php @@ -684,6 +684,17 @@ public function validateQuery(array $params = []) return $this->performRequest($endpoint); } + /** + * Alias function to getAlias() + * + * @deprecated added to prevent BC break introduced in 7.2.0 + * @see https://github.com/elastic/elasticsearch-php/issues/940 + */ + public function getAliases(array $params) + { + return $this->getAlias($params); + } + /** * Endpoint: indices.get_alias *