elastic / elasticsearch-php

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

Transport.php fix backported into 6.8.x #1109

Closed potemkin-git closed 3 years ago

potemkin-git commented 3 years ago

Following to issue 676, fix is still missing from 6.8.x release

Error Cannot use object of type Elasticsearch\Common\Exceptions\Missing404Exception as array is still encountered in 6.8.

This PR intend to backport Master's fix into previous release 6.7.x and 6.8.x

elasticmachine commented 3 years ago

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

ezimuel commented 3 years ago

@potemkin-git thanks for your PR. I added the unit test from https://github.com/elastic/elasticsearch-php/pull/1066