diff --git a/CHANGELOG.md b/CHANGELOG.md index f99fbd2e4..3a8858a38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,18 @@ +## Release 7.4.1 + +- We added the suppress operator `@` for the deprecation messages `@trigger_error()`. + With this approach we don't break existing application that convert PHP errors in Exception + (e.g. using Laravel with issue https://github.com/babenkoivan/scout-elasticsearch-driver/issues/297) + Using the `@` operator is still possible to intercept the deprecation message using + a custom error handler. + [#973](https://github.com/elastic/elasticsearch-php/pull/973) +- Add missing leading slash in the URL of put mapping endpoint + [#970](https://github.com/elastic/elasticsearch-php/pull/970) +- Fix pre 7.2 endpoint class name with aliases + reapply fix #947. + This PR solved the unexpected BC break introduce in 7.4.0 with the code + generation tool + [#968](https://github.com/elastic/elasticsearch-php/pull/968) + ## Release 7.4.0 - Added the code generation for endpoints and namespaces based on diff --git a/docs/build/Elasticsearch/Namespaces/IndicesNamespace.asciidoc b/docs/build/Elasticsearch/Namespaces/IndicesNamespace.asciidoc index 9a86aa6f9..f01dd6d01 100644 --- a/docs/build/Elasticsearch/Namespaces/IndicesNamespace.asciidoc +++ b/docs/build/Elasticsearch/Namespaces/IndicesNamespace.asciidoc @@ -51,6 +51,7 @@ The class defines the following methods: * <> * <> * <> +* <> @@ -970,3 +971,23 @@ $response = $client->indices()->validateQuery($params); **** + +[[Elasticsearch_Namespaces_IndicesNamespacegetAliases_getAliases]] +.`getAliases()` +**** +[source,php] +---- +/* +Alias function to getAlias() +*/ + +$params = [ + // ... +]; + +$client = ClientBuilder::create()->build(); +$response = $client->indices()->getAliases($params); +---- +**** + + diff --git a/docs/build/Elasticsearch/Namespaces/TasksNamespace.asciidoc b/docs/build/Elasticsearch/Namespaces/TasksNamespace.asciidoc index b5edba9fe..af326b4e8 100644 --- a/docs/build/Elasticsearch/Namespaces/TasksNamespace.asciidoc +++ b/docs/build/Elasticsearch/Namespaces/TasksNamespace.asciidoc @@ -16,6 +16,7 @@ The class defines the following methods: * <> * <> * <> +* <> @@ -83,3 +84,23 @@ $response = $client->tasks()->list($params); **** + +[[Elasticsearch_Namespaces_TasksNamespacetasksList_tasksList]] +.`tasksList()` +**** +[source,php] +---- +/* +Proxy function to list() to prevent BC break since 7.4.0 +*/ + +$params = [ + // ... +]; + +$client = ClientBuilder::create()->build(); +$response = $client->tasks()->tasksList($params); +---- +**** + + diff --git a/docs/build/renderer.index b/docs/build/renderer.index index 550f772ec..062b823ac 100644 --- a/docs/build/renderer.index +++ b/docs/build/renderer.index @@ -1 +1 @@ -C:19:"Sami\Renderer\Index":944:{a:3:{i:0;a:9:{s:20:"Elasticsearch\Client";s:40:"9eb6a91412561cbe36b6b571bc9851c278c85ccd";s:27:"Elasticsearch\ClientBuilder";s:40:"79318bc922f47119ea3a1b79e46c0133e42f55fe";s:37:"Elasticsearch\Namespaces\CatNamespace";s:40:"18615bfcca0fff8ff4604bfc4a7d3cb522beb842";s:41:"Elasticsearch\Namespaces\ClusterNamespace";s:40:"2ffe6325d7b0bf3c80411d845d4f2513774d120b";s:41:"Elasticsearch\Namespaces\IndicesNamespace";s:40:"18d027b1a6a041842f89ac736cd271afff70f084";s:40:"Elasticsearch\Namespaces\IngestNamespace";s:40:"230c5581ec9b9bcc011ae40c3079739ddf70a2c6";s:39:"Elasticsearch\Namespaces\NodesNamespace";s:40:"8cacfd1262fa5f34665c73972d17be0d8e243a17";s:42:"Elasticsearch\Namespaces\SnapshotNamespace";s:40:"b580a93f8731697fcf62c841ceae7399205bb8be";s:39:"Elasticsearch\Namespaces\TasksNamespace";s:40:"f6e32ea21f0b60f65a22d33228fb24599f665462";}i:1;a:1:{i:0;s:6:"master";}i:2;a:2:{i:0;s:13:"Elasticsearch";i:1;s:24:"Elasticsearch\Namespaces";}}} \ No newline at end of file +C:19:"Sami\Renderer\Index":944:{a:3:{i:0;a:9:{s:20:"Elasticsearch\Client";s:40:"498c4d5be950c9bd8aea481182d66604a88e28f3";s:27:"Elasticsearch\ClientBuilder";s:40:"4a02663ab50b5d678afd8fc06f8b3840d116e9f6";s:37:"Elasticsearch\Namespaces\CatNamespace";s:40:"8d5a7545dc03dede1231b99b255e93830d82dd43";s:41:"Elasticsearch\Namespaces\ClusterNamespace";s:40:"76efc72f51c81c55d786b6f1a5b991153409e754";s:41:"Elasticsearch\Namespaces\IndicesNamespace";s:40:"45eb11f7e963d832b6cf9a07559b38ae199d010a";s:40:"Elasticsearch\Namespaces\IngestNamespace";s:40:"45161815593d106eac15f02aaab8c9b4c945389d";s:39:"Elasticsearch\Namespaces\NodesNamespace";s:40:"fbc57ed03a175214b326243dcedd39d23e0e79af";s:42:"Elasticsearch\Namespaces\SnapshotNamespace";s:40:"d85d989bb5d31c674c7e75dd9efd43bd7c9b867e";s:39:"Elasticsearch\Namespaces\TasksNamespace";s:40:"36025b3b27666f4cf825bebe058e6cd5f6079ab1";}i:1;a:1:{i:0;s:6:"master";}i:2;a:2:{i:0;s:13:"Elasticsearch";i:1;s:24:"Elasticsearch\Namespaces";}}} \ No newline at end of file