Skip to content

Commit 76d721c

Browse files
committed
BUGFIX: Content can be string or array
1 parent 9578689 commit 76d721c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Classes/Domain/Model/Index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,13 @@ public function exists(): bool
154154
* @param string $method
155155
* @param string $path
156156
* @param array $arguments
157-
* @param string $content
157+
* @param string|array $content
158158
* @param bool $prefixIndex
159159
* @return Response
160160
* @throws ElasticSearchException
161161
* @throws \Neos\Flow\Http\Exception
162162
*/
163-
public function request(string $method, string $path = null, array $arguments = [], string $content = null, bool $prefixIndex = true): Response
163+
public function request(string $method, string $path = null, array $arguments = [], $content = null, bool $prefixIndex = true): Response
164164
{
165165
if ($this->client === null) {
166166
throw new ElasticSearchException('The client of the index "' . $this->name . '" is not set, hence no requests can be done.', 1566313883);

0 commit comments

Comments
 (0)