mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 19:59:11 +00:00
added some callable prototypes for phpstan
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user