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