diff --git a/src/utils/Utils.php b/src/utils/Utils.php index c34a771f4..3da8fcfdd 100644 --- a/src/utils/Utils.php +++ b/src/utils/Utils.php @@ -143,6 +143,15 @@ class Utils{ }; } + /** + * @phpstan-template T of object + * + * @param object[] $array + * @phpstan-param T[] $array + * + * @return object[] + * @phpstan-return T[] + */ public static function cloneObjectArray(array $array) : array{ return array_map(self::cloneCallback(), $array); }