Skip to content

Commit

Permalink
Add mixed[] to phpdocs for workload (#42)
Browse files Browse the repository at this point in the history
* Add string[] to phpdocs for workload

* change string[] to mixed[]
  • Loading branch information
Prokyonn authored and wachterjohannes committed Oct 22, 2019
1 parent db17518 commit 271f5a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/Task/Handler/TaskHandlerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ interface TaskHandlerInterface
/**
* Handles given workload and returns result.
*
* @param string|\Serializable $workload
* @param string|\Serializable|mixed[] $workload
*
* @return string|\Serializable
* @return string|\Serializable|mixed[]
*/
public function handle($workload);
}

3 changes: 2 additions & 1 deletion src/Task/Scheduler/TaskSchedulerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface TaskSchedulerInterface
* Returns new task-builder.
*
* @param $handlerClass
* @param string|\Serializable $workload
* @param string|\Serializable|mixed[] $workload
*
* @return TaskBuilderInterface
*/
Expand All @@ -43,3 +43,4 @@ public function addTask(TaskInterface $task);
*/
public function scheduleTasks();
}

0 comments on commit 271f5a9

Please sign in to comment.