added some callable prototypes for phpstan

This commit is contained in:
Dylan K. Taylor
2020-01-29 19:56:16 +00:00
parent 68bea6d4aa
commit 5c4487c980
10 changed files with 64 additions and 7 deletions

View File

@ -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();