-
Notifications
You must be signed in to change notification settings - Fork 98
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
Improve coding standards #684
Conversation
I cannot understand if delete tasks query test was properly defined or not because https://www.meilisearch.com/docs/reference/api/tasks#delete-tasks does not indicate the
But to me it does not make any sense |
71fa596
to
e12088f
Compare
I don't understand @norkunas, why would you pass Also, maybe the docs contains mistakes, but canceledBy is here: https://www.meilisearch.com/docs/reference/api/tasks#canceledby |
Not null as array, but null as item in array, see the previous code:
To make codebase consistent?
Ok so it accepts an integer and if multiple then it needs to be joined by comma. I've made the contract to explicitly say |
Yes sorry, I got it but not said it correctly. But why do you need to pass null? This is not the purpose of canceling a task. the purpose is to pass the uid of the task(s) to cancel them |
I don't. That was the existing test which is nonsense |
Indeed, sounds weird to me, we can change it/remove it. |
f3005b7
to
a7d5887
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #684 +/- ##
==========================================
+ Coverage 83.34% 89.71% +6.36%
==========================================
Files 51 52 +1
Lines 1303 1322 +19
==========================================
+ Hits 1086 1186 +100
+ Misses 217 136 -81 ☔ View full report in Codecov by Sentry. |
@norkunas can you improve
There are a lot of changes |
Done |
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.
bors merge
689: Update version for the next release (v1.11.0) r=brunoocasali a=meili-bot _This PR is auto-generated._ The automated script updates the version of meilisearch-php to a new version: "v1.11.0" --- CHANGELOG --- This version introduces features released on Meilisearch v1.11.0 🎉 Check out the [changelog of Meilisearch v1.11.0](https://github.com/meilisearch/meilisearch/releases/tag/v1.11.0) for more information on the changes. ##⚠️ Breaking change (experimental feature only) * Adapt the library to the new usage of [Meilisearch v1.11](https://github.com/meilisearch/meilisearch/releases/tag/v1.11.0) (#683) `@/ManyTheFish` & `@/norkunas` ## 🚀 Enhancements * Add facet distribution to `multiSearch` (#683) `@/ManyTheFish` & `@/norkunas` ## ⚙️ Maintenance/misc * Improve coding standards (#684) `@/norkunas` Thanks again to `@/ManyTheFish,` and `@/norkunas!` 🎉 Co-authored-by: meili-bot <74670311+meili-bot@users.noreply.github.com>
Pull Request
Related issue
Fixes #<issue_number>
What does this PR do?
DateTime
withDateTimeinterface
to encourage usage ofDateTimeImmutable
;PR checklist
Please check if your PR fulfills the following requirements: