mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 17:06:16 +00:00
Task::onRun() and Task::onCancel() now require :void return typehints
This commit is contained in:
@ -57,17 +57,13 @@ abstract class Task{
|
||||
|
||||
/**
|
||||
* Actions to execute when run
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
abstract public function onRun();
|
||||
abstract public function onRun() : void;
|
||||
|
||||
/**
|
||||
* Actions to execute if the Task is cancelled
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function onCancel(){
|
||||
public function onCancel() : void{
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user