mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-10 05:34:54 +00:00
Revert "ClosureTask: drop requirement for void return type"
This reverts commit 9e993aa83fafe8434c5aef1ec7e0e0190bd2f9d3. apparently PHPStan isn't cool with this ...
This commit is contained in:
parent
f08e411cad
commit
2d51971b84
@ -49,7 +49,7 @@ class ClosureTask extends Task{
|
||||
* @phpstan-param \Closure(int) : void $closure
|
||||
*/
|
||||
public function __construct(\Closure $closure){
|
||||
Utils::validateCallableSignature(function(int $currentTick){}, $closure);
|
||||
Utils::validateCallableSignature(function(int $currentTick) : void{}, $closure);
|
||||
$this->closure = $closure;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user