-
Notifications
You must be signed in to change notification settings - Fork 102
Bump to PHP 8.1, improve type safety for Tasks #735
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
Open
norkunas
wants to merge
41
commits into
meilisearch:v2
Choose a base branch
from
norkunas:task-object
base: v2
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
5815de8
Bump PHP requirement to 8.1
norkunas 338f83d
Add missing types
norkunas c6d4147
Add task object and related enums
norkunas ed7b13a
Replace task array return with Task object
norkunas 7087a12
Add tests for missing coverage report
norkunas f6d5c9e
Fix conflicts
norkunas 3bb0a8b
Remove unused variable
norkunas ffa2ba5
Fix test method name
norkunas 81513fe
Add a missing phpdoc type for documentId validation
norkunas 8d1c30c
Remove task type that does not exist
norkunas 612f58a
Add comment about array access retrocompatibility
norkunas f6f05dd
Fix tests after `TaskType::documentEdition` removal
norkunas 546bc7e
Revert "Fix tests after `TaskType::documentEdition` removal"
norkunas 63eaa6a
Revert "Remove task type that does not exist"
norkunas cbd0c25
Add a `non-negative-int` hint for `searchCutoffMs` setting value
norkunas d4d7e24
Add typed TaskDetails and TaskError + fix namespace casing
norkunas f424477
Wrap in Task `Indexes::getTask`
norkunas 7b53b52
Rename `$promise` to `$task` in tests
norkunas 5c7a8ec
Wrap tasks in `TasksResults` object with `Task` object
norkunas 8514102
Replace task array access usage with getters
norkunas 8de831c
Completely replace array data usage
norkunas 63fdbbe
Fix bot review
norkunas 07ca854
Add assertion
norkunas dc8dc1d
Fix missing coverage
norkunas ee6a90f
Fix phpstan errors
norkunas 90304c5
Configure phpunit to display deprecations/errors/notices/warnings
norkunas 8b034a3
Fix TaskDeletionDetails to accept `deletedTasks`
norkunas d708780
Fix `DocumentDeletionDetails` to not require `providedIds` (not avail…
norkunas e2cc923
Remove task array access
norkunas 80b10ae
Fix test
norkunas 7571178
Add missing typehints
norkunas b23790a
Add the `disableOnNumbers` field to SettingsUpdateDetails on `typoTol…
norkunas 9a9349e
Fix code review
norkunas 9cf7a37
Add `wait` method to task
norkunas 0c986ea
Use `str_contains`
norkunas 5b7c3e6
Fix another review comment
norkunas f888fd7
Avoid count
norkunas aabe2e1
Always use JSON_THROW_ON_ERROR
norkunas d43feca
Fix CS
norkunas 3f0bffc
Fix lint
norkunas 28c45ee
Fix test
norkunas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.