Skip to content

Commit 8b034a3

Browse files
committed
Fix TaskDeletionDetails to accept deletedTasks
1 parent 90304c5 commit 8b034a3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Contracts/TaskDetails/TaskDeletionDetails.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@
99
/**
1010
* @implements TaskDetails<array{
1111
* matchedTasks: non-negative-int|null,
12-
* canceledTasks: non-negative-int|null,
12+
* deletedTasks: non-negative-int|null,
1313
* originalFilter: string|null
1414
* }>
1515
*/
1616
final class TaskDeletionDetails implements TaskDetails
1717
{
1818
/**
1919
* @param non-negative-int|null $matchedTasks The number of matched tasks. If the API key used for the request doesn’t have access to an index, tasks relating to that index will not be included in matchedTasks.
20-
* @param non-negative-int|null $canceledTasks The number of tasks successfully canceled. If the task cancellation fails, this will be 0. null when the task status is enqueued or processing.
21-
* @param string|null $originalFilter the filter used in the delete task request
20+
* @param non-negative-int|null $deletedTasks The number of tasks successfully deleted. If the task deletion fails, this will be 0. null when the task status is enqueued or processing.
21+
* @param string|null $originalFilter The filter used in the delete task request.
2222
*/
2323
public function __construct(
2424
public readonly ?int $matchedTasks,
25-
public readonly ?int $canceledTasks,
25+
public readonly ?int $deletedTasks,
2626
public readonly ?string $originalFilter,
2727
) {
2828
}
@@ -31,7 +31,7 @@ public static function fromArray(array $data): self
3131
{
3232
return new self(
3333
$data['matchedTasks'],
34-
$data['canceledTasks'],
34+
$data['deletedTasks'],
3535
$data['originalFilter'],
3636
);
3737
}

0 commit comments

Comments
 (0)