Skip to content

Commit

Permalink
5.5.1 PHP 8 backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Watercycle committed Aug 17, 2021
1 parent 80fe9b1 commit 47bb759
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"php": "^5.6|^7.0",
"php": ">=5.6",
"psr/log": "~1.0",
"guzzlehttp/ringphp" : "~1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*/
class Client
{
const VERSION = '5.5.0';
const VERSION = '5.5.1';

/**
* @var Transport
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Connections/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ private function wrapHandler(callable $handler, LoggerInterface $logger, LoggerI
private function getURI($uri, $params)
{
if (isset($params) === true && !empty($params)) {
array_walk($params, function (&$value, &$key) {
array_walk($params, function (&$value) {
if ($value === true) {
$value = 'true';
} else if ($value === false) {
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Connections/ConnectionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,5 @@ public function getLastRequestInfo();
* @param \Elasticsearch\Transport $transport
* @return mixed
*/
public function performRequest($method, $uri, $params = null, $body = null, $options = [], Transport $transport);
public function performRequest($method, $uri, $params = null, $body = null, $options = [], Transport $transport = null);
}
2 changes: 1 addition & 1 deletion src/Elasticsearch/Transport.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Transport
* @param ConnectionPool\AbstractConnectionPool $connectionPool
* @param \Psr\Log\LoggerInterface $log Monolog logger object
*/
public function __construct($retries, $sniffOnStart = false, AbstractConnectionPool $connectionPool, LoggerInterface $log)
public function __construct($retries, $sniffOnStart = false, AbstractConnectionPool $connectionPool = null, LoggerInterface $log = null)
{
$this->log = $log;
$this->connectionPool = $connectionPool;
Expand Down

0 comments on commit 47bb759

Please sign in to comment.