mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02:00
[feature/system-cron] Require cron task wrapper constructor to be a cron task.
PHPBB3-9596
This commit is contained in:
@@ -33,7 +33,7 @@ class cron_task_wrapper
|
|||||||
/**
|
/**
|
||||||
* Wraps a task $task, which must implement cron_task interface.
|
* Wraps a task $task, which must implement cron_task interface.
|
||||||
*/
|
*/
|
||||||
public function __construct($task)
|
public function __construct(cron_task $task)
|
||||||
{
|
{
|
||||||
$this->task = $task;
|
$this->task = $task;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user