-
Notifications
You must be signed in to change notification settings - Fork 32
Apply task changes #188
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
Apply task changes #188
Conversation
@@ -162,7 +162,7 @@ public function testPreRemoveWithObjectId(): void | |||
*/ | |||
private function waitForAllTasks(): void | |||
{ | |||
$firstTask = $this->client->getTasks()['results'][0]; | |||
$firstTask = $this->client->getTasks()->getResults()[0]; |
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.
What is the new return type of getTasks
, it was an array before, right?
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.
Yes! But now we expose a TasksResults
instead of the plain array. https://github.com/meilisearch/meilisearch-php/pull/346/files#diff-a89919ef9dd9fd7b26588c14dfede73eedb183d875b989ac6c1ee9358f02114bR17
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.
Intrinsically is the same behavior but the correct way to access this value is through the getter :)
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.
Perfect! thanks!
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.
It seems not a lot of changes, I checked in the code base to be sure, but looks like everything has been updated 😊 Not a lot of changes finally for Symfony!
Well done!
uid
bytaskUid
['results']
by->getResults()
TODO:
meilisearch-php
after the release.