From 8fca68e8ab4260e0424c32485e9b66ee72a71fa5 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 16 Oct 2019 12:11:56 +0200 Subject: - add patch for PHP 7.4 from https://github.com/solariumphp/solarium/pull/711 --- 711.patch | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 711.patch (limited to '711.patch') diff --git a/711.patch b/711.patch new file mode 100644 index 0000000..24e8f78 --- /dev/null +++ b/711.patch @@ -0,0 +1,36 @@ +From c124072397b395a6ec260a29958f471e0bc753a5 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Wed, 16 Oct 2019 11:24:18 +0200 +Subject: [PATCH] fix Passing glue string after array is deprecated + +--- + src/Core/Query/AbstractRequestBuilder.php | 2 +- + src/Core/Query/Helper.php | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/Core/Query/AbstractRequestBuilder.php b/src/Core/Query/AbstractRequestBuilder.php +index 73b6ee72..a3c49ba4 100644 +--- a/src/Core/Query/AbstractRequestBuilder.php ++++ b/src/Core/Query/AbstractRequestBuilder.php +@@ -68,7 +68,7 @@ public function renderLocalParams(string $value, array $localParams = []): strin + } + + if (is_array($paramValue)) { +- $paramValue = implode($paramValue, ','); ++ $paramValue = implode(',', $paramValue); + } + + $params .= $paramName.'='.$paramValue.' '; +diff --git a/src/Core/Query/Helper.php b/src/Core/Query/Helper.php +index 0cf77152..a996bdcf 100644 +--- a/src/Core/Query/Helper.php ++++ b/src/Core/Query/Helper.php +@@ -343,7 +343,7 @@ public function functionCall(string $name, array $params = [], bool $dereference + return $name.'()'; + } + +- return $name.'('.implode($params, ',').')'; ++ return $name.'('.implode(',', $params).')'; + } + + /** -- cgit