Skip to content

Commit 358586f

Browse files
committed
Fixed ConnectionInterface inconsistency
1 parent 021494e commit 358586f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Elasticsearch/Connections/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public function __construct(
190190
/**
191191
* @param string $method
192192
* @param string $uri
193-
* @param array $params
193+
* @param null|array $params
194194
* @param null $body
195195
* @param array $options
196196
* @param Transport $transport

src/Elasticsearch/Connections/ConnectionInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,5 @@ public function getLastRequestInfo(): array;
7575
* @param null $body
7676
* @return mixed
7777
*/
78-
public function performRequest(string $method, string $uri, array $params = [], $body = null, array $options = [], Transport $transport = null);
78+
public function performRequest(string $method, string $uri, ?array $params = [], $body = null, array $options = [], Transport $transport = null);
7979
}

0 commit comments

Comments
 (0)