From ecf3aa8549b9125c4da08e004c184b28df8293e5 Mon Sep 17 00:00:00 2001 From: Dragos Protung Date: Mon, 30 Sep 2024 18:20:37 +0200 Subject: [PATCH] feat(vec): allow iterable as a first argument for `concat` (#496) --- src/Psl/Vec/concat.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Psl/Vec/concat.php b/src/Psl/Vec/concat.php index 18ac064b1..002427705 100644 --- a/src/Psl/Vec/concat.php +++ b/src/Psl/Vec/concat.php @@ -9,12 +9,12 @@ * * @template T * - * @param list $first + * @param iterable $first * @param iterable ...$rest * * @return list */ -function concat(array $first, iterable ...$rest): array +function concat(iterable $first, iterable ...$rest): array { $first = values($first); foreach ($rest as $arr) {