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

@@ -131,6 +131,9 @@ class Utils{
return $reflect->getName();
}
/**
* @phpstan-return \Closure(object) : object
*/
public static function cloneCallback() : \Closure{
return static function(object $o){
return clone $o;