-
Notifications
You must be signed in to change notification settings - Fork 106
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
Merged
Merged
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
4698256
Bump PHP requirement to 8.1
norkunas 8b9a442
Add missing types
norkunas b08c13e
Add task object and related enums
norkunas 8017944
Replace task array return with Task object
norkunas a4091a9
Add tests for missing coverage report
norkunas 204f354
Fix conflicts
norkunas 444e391
Remove unused variable
norkunas b7d0c9c
Fix test method name
norkunas 12e4e1a
Add a missing phpdoc type for documentId validation
norkunas fe3c1ff
Remove task type that does not exist
norkunas 6cb7c0e
Add comment about array access retrocompatibility
norkunas 23813ac
Fix tests after `TaskType::documentEdition` removal
norkunas 412c8bd
Revert "Fix tests after `TaskType::documentEdition` removal"
norkunas c523684
Revert "Remove task type that does not exist"
norkunas 6a601da
Add a `non-negative-int` hint for `searchCutoffMs` setting value
norkunas 757f5cf
Add typed TaskDetails and TaskError + fix namespace casing
norkunas a1d5654
Wrap in Task `Indexes::getTask`
norkunas 18813de
Rename `$promise` to `$task` in tests
norkunas 605d8dd
Wrap tasks in `TasksResults` object with `Task` object
norkunas bd8fc9a
Replace task array access usage with getters
norkunas 998de9b
Completely replace array data usage
norkunas 2e771aa
Fix bot review
norkunas a7aa9f3
Add assertion
norkunas eaf2a27
Fix missing coverage
norkunas fbfaf1f
Fix phpstan errors
norkunas a809c4d
Configure phpunit to display deprecations/errors/notices/warnings
norkunas 7bed369
Fix TaskDeletionDetails to accept `deletedTasks`
norkunas 96c6c58
Fix `DocumentDeletionDetails` to not require `providedIds` (not avail…
norkunas db15b4b
Remove task array access
norkunas c42a611
Fix test
norkunas c4f3355
Add missing typehints
norkunas 1412f52
Add the `disableOnNumbers` field to SettingsUpdateDetails on `typoTol…
norkunas 191c422
Fix code review
norkunas 4a32e09
Add `wait` method to task
norkunas e5c7ba6
Use `str_contains`
norkunas bfb0a87
Fix another review comment
norkunas 5a7a310
Avoid count
norkunas d975de0
Always use JSON_THROW_ON_ERROR
norkunas c51d9ab
Fix CS
norkunas 4bb394b
Fix lint
norkunas 397cd4b
Fix test
norkunas db46570
Fix code review
norkunas 12574f2
Fix test
norkunas c0e77e2
Remove dropped php versions from gh workflows
norkunas 288f6c5
Fix coderabbit comment
norkunas 6f61cea
Fix failing tests
norkunas 33c2781
Pass waiter fn
norkunas 93512cd
Add missing type
norkunas 4b361f1
Add missing types
norkunas a01eab9
Add `UnknownTaskDetails`, `TaskType::Unknown`, `TaskStatus::Unknown`
norkunas 9275679
Fix passing no details
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
Some comments aren't visible on the classic Files Changed page.
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.
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.