diff --git a/docs/apis/subsystems/task/adhoc.md b/docs/apis/subsystems/task/adhoc.md index 8c95efdb14..6b1f3e1071 100644 --- a/docs/apis/subsystems/task/adhoc.md +++ b/docs/apis/subsystems/task/adhoc.md @@ -67,7 +67,7 @@ class do_something extends \core\task\adhoc_task { public static function instance( int $id, string $status, - ): void { + ): self { $task = new self(); $task->set_custom_data((object) [ 'id' => $id,