diff --git a/src/Utils/ArrayObject.php b/src/Utils/ArrayObject.php index 0d7b9549..c5d2fa5b 100644 --- a/src/Utils/ArrayObject.php +++ b/src/Utils/ArrayObject.php @@ -71,8 +71,10 @@ public function filter(callable $callback): self * Run a callable over each item in the array and flatten the results by one level returning a new instance of * `ArrayObject` with the flattened items. * - * @param callable $callback - * @return static + * @template TFlatMapReturn of array + * + * @param callable(T): TFlatMapReturn $callback + * @return static */ public function flatMap(callable $callback): self {