Skip to content

Commit 29883b7

Browse files
committed
Fix array_walk() call on PHP 8
1 parent c68e219 commit 29883b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elasticsearch/Connections/Connection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ private function wrapHandler(callable $handler)
327327
private function getURI($uri, $params)
328328
{
329329
if (isset($params) === true && !empty($params)) {
330-
array_walk($params, function (&$value, &$key) {
330+
array_walk($params, function (&$value) {
331331
if ($value === true) {
332332
$value = 'true';
333333
} elseif ($value === false) {

0 commit comments

Comments
 (0)