mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 01:16:15 +00:00
added some callable prototypes for phpstan
This commit is contained in:
@ -197,6 +197,10 @@ class TimingsHandler{
|
||||
|
||||
/**
|
||||
* @return mixed the result of the given closure
|
||||
*
|
||||
* @phpstan-template TClosureReturn
|
||||
* @phpstan-param \Closure() : TClosureReturn $closure
|
||||
* @phpstan-return TClosureReturn
|
||||
*/
|
||||
public function time(\Closure $closure){
|
||||
$this->startTiming();
|
||||
|
Reference in New Issue
Block a user