-
Notifications
You must be signed in to change notification settings - Fork 730
fix: forward $args in Index::forcemerge to Elasticsearch #2301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 9.x
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -449,10 +449,10 @@ public function deleteDocuments(array $docs): ResponseSet | |||||||||||
| * @throws ServerResponseException if the status code of response is 5xx | ||||||||||||
| * @throws ClientException | ||||||||||||
| */ | ||||||||||||
| public function forcemerge($args = []): Response | ||||||||||||
| public function forcemerge(array $args = []): Response | ||||||||||||
| { | ||||||||||||
|
Comment on lines
+452
to
453
|
||||||||||||
| public function forcemerge(array $args = []): Response | |
| { | |
| public function forcemerge($args = []): Response | |
| { | |
| $args = \is_array($args) ? $args : []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This entry describes the forwarding fix, but the PR also changes
Index::forcemerge()'s public method signature by adding anarraytype-hint. If you keep the type change, it should be called out under “Backward Compatibility Breaks” (or the type change should be reverted) so consumers aren’t surprised by a newTypeError.