elastic / elasticsearch-php

Official PHP client for Elasticsearch.
https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/index.html
MIT License
5.27k stars 965 forks source link

Calling static trait method ... is deprecated #1393

Closed bryonbean closed 7 months ago

bryonbean commented 7 months ago

Summary of problem or feature request

For whatever reason I've been under the impression that the version of elasticsearch-php was bound to the version of Elasticsearch being used. For example, if you're using Elasticsearch 7.11, you're bound to the elasticsearch-php package at 7.11.

However, I just discovered that I am using elasticsearch-php version 7.15.0 while my Elasticsearch version is 7.11. So my question: are major versions elasticsearch-php guaranteed to be backwards compatible with its major version counterpart of Elasticsearch?

What I'm really looking to do here is get rid of the deprecation warning noted below, and it looks like I can do so with version 7.17, is that correct?

Code snippet of problem

Calling static trait method Elasticsearch\Namespaces\BooleanRequestWrapper::performRequest is deprecated

System details

bryonbean commented 7 months ago

Sorry, just read the answer to my question in your README. Closing with a thanks!