The Tasks and Batches endpoints have missing return types or unresolved TODOs regarding return values.
Files & Actions:
-
src/Endpoints/Tasks.php
all(array $query = []): Resolve the existing TODO (// @todo: must return array<Task>). Ensure it returns TasksResults or a strongly typed array.
-
src/Endpoints/Batches.php
get(int $batchUid): Add PHPDoc return type or return a Batch DTO.
all(array $query = []): Update to return BatchesResults or add explicit PHPDoc.
The
TasksandBatchesendpoints have missing return types or unresolved TODOs regarding return values.Files & Actions:
src/Endpoints/Tasks.phpall(array $query = []): Resolve the existing TODO (// @todo: must return array<Task>). Ensure it returnsTasksResultsor a strongly typed array.src/Endpoints/Batches.phpget(int $batchUid): Add PHPDoc return type or return aBatchDTO.all(array $query = []): Update to returnBatchesResultsor add explicit PHPDoc.