Skip to content

Commit

Permalink
do not use the splat operator on arraymap
Browse files Browse the repository at this point in the history
  • Loading branch information
irevoire committed Aug 1, 2024
1 parent 8cdaee8 commit bc722c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Endpoints/Delegates/HandlesDocuments.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function updateDocumentsNdjsonInBatches(string $documents, ?int $batchSiz
*/
public function updateDocumentsByFunction(string $function, array $options = [])
{
return $this->http->post(self::PATH.'/'.$this->uid.'/documents/edit', ['function' => $function, ...$options]);
return $this->http->post(self::PATH.'/'.$this->uid.'/documents/edit', array_merge(['function' => $function], $options));
}

public function deleteAllDocuments(): array
Expand Down

0 comments on commit bc722c8

Please sign in to comment.