Skip to content

Commit

Permalink
Merge branch 'fix/suppress-deprecation'
Browse files Browse the repository at this point in the history
  • Loading branch information
ezimuel committed Nov 26, 2019
2 parents e6c7b42 + 8de5784 commit 5afb458
Show file tree
Hide file tree
Showing 29 changed files with 28 additions and 30 deletions.
2 changes: 0 additions & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
>
<php>
<env name="ES_TEST_HOST" value=""/>
<!-- Disable E_USER_DEPRECATED setting E_ALL & ~E_USER_DEPRECATED-->
<ini name="error_reporting" value="16383"/>
</php>
<testsuites>
<testsuite name="Tests">
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Bulk.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function getURI(): string
$index = $this->index ?? null;
$type = $this->type ?? null;
if (isset($type)) {
trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}

if (isset($index) && isset($type)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/ClearScroll.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getURI(): string
{
$scroll_id = $this->scroll_id ?? null;
if (isset($scroll_id)) {
trigger_error('A scroll id can be quite large and should be specified as part of the body', E_USER_DEPRECATED);
@trigger_error('A scroll id can be quite large and should be specified as part of the body', E_USER_DEPRECATED);
}

if (isset($scroll_id)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Count.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getURI(): string
$index = $this->index ?? null;
$type = $this->type ?? null;
if (isset($type)) {
trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}

if (isset($index) && isset($type)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function getURI(): string
$index = $this->index;
$type = $this->type ?? null;
if (isset($type)) {
trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}

if (isset($type)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function getURI(): string
$index = $this->index;
$type = $this->type ?? null;
if (isset($type)) {
trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}

if (isset($type)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/DeleteByQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function getURI(): string
$index = $this->index;
$type = $this->type ?? null;
if (isset($type)) {
trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}

if (isset($type)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Exists.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function getURI(): string
$index = $this->index;
$type = $this->type ?? null;
if (isset($type)) {
trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}

if (isset($type)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/ExistsSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function getURI(): string
$index = $this->index;
$type = $this->type ?? null;
if (isset($type)) {
trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}

if (isset($type)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Explain.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function getURI(): string
$index = $this->index;
$type = $this->type ?? null;
if (isset($type)) {
trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}

if (isset($type)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Get.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function getURI(): string
$index = $this->index;
$type = $this->type ?? null;
if (isset($type)) {
trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}

if (isset($type)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/GetSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function getURI(): string
$index = $this->index;
$type = $this->type ?? null;
if (isset($type)) {
trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}

if (isset($type)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function getURI(): string
$id = $this->id ?? null;
$type = $this->type ?? null;
if (isset($type)) {
trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}

if (isset($type) && isset($id)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Indices/ExistsType.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function getURI(): string
$index = $this->index ?? null;
$type = $this->type ?? null;
if (isset($type)) {
trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}

if (isset($index) && isset($type)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Indices/GetFieldMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getURI(): string
$index = $this->index ?? null;
$type = $this->type ?? null;
if (isset($type)) {
trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}

if (isset($index) && isset($type)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Indices/GetMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getURI(): string
$index = $this->index ?? null;
$type = $this->type ?? null;
if (isset($type)) {
trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}

if (isset($index) && isset($type)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Indices/PutMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function getURI(): string
$index = $this->index ?? null;
$type = $this->type ?? null;
if (isset($type)) {
trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}

if (isset($index) && isset($type)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Indices/ValidateQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getURI(): string
$index = $this->index ?? null;
$type = $this->type ?? null;
if (isset($type)) {
trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}

if (isset($index) && isset($type)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/MTermVectors.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getURI(): string
$index = $this->index ?? null;
$type = $this->type ?? null;
if (isset($type)) {
trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}

if (isset($index) && isset($type)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Mget.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getURI(): string
$index = $this->index ?? null;
$type = $this->type ?? null;
if (isset($type)) {
trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}

if (isset($index) && isset($type)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Msearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function getURI(): string
$index = $this->index ?? null;
$type = $this->type ?? null;
if (isset($type)) {
trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}

if (isset($index) && isset($type)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/MsearchTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function getURI(): string
$index = $this->index ?? null;
$type = $this->type ?? null;
if (isset($type)) {
trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}

if (isset($index) && isset($type)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Scroll.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getURI(): string
{
$scroll_id = $this->scroll_id ?? null;
if (isset($scroll_id)) {
trigger_error('A scroll id can be quite large and should be specified as part of the body', E_USER_DEPRECATED);
@trigger_error('A scroll id can be quite large and should be specified as part of the body', E_USER_DEPRECATED);
}

if (isset($scroll_id)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getURI(): string
$index = $this->index ?? null;
$type = $this->type ?? null;
if (isset($type)) {
trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}

if (isset($index) && isset($type)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/SearchTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getURI(): string
$index = $this->index ?? null;
$type = $this->type ?? null;
if (isset($type)) {
trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}

if (isset($index) && isset($type)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/TermVectors.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function getURI(): string
$id = $this->id ?? null;
$type = $this->type ?? null;
if (isset($type)) {
trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}

if (isset($type) && isset($id)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function getURI(): string
$index = $this->index;
$type = $this->type ?? null;
if (isset($type)) {
trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}

if (isset($type)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/UpdateByQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function getURI(): string
$index = $this->index;
$type = $this->type ?? null;
if (isset($type)) {
trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
@trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED);
}

if (isset($type)) {
Expand Down
2 changes: 1 addition & 1 deletion util/template/deprecated
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
if (isset($:part)) {
trigger_error(':msg', E_USER_DEPRECATED);
@trigger_error(':msg', E_USER_DEPRECATED);
}

0 comments on commit 5afb458

Please sign in to comment.