From 226f0ff0dd5e605719ad4adebb2debd85ca334ee Mon Sep 17 00:00:00 2001 From: Ruud Kamphuis Date: Wed, 30 Oct 2024 15:44:01 +0100 Subject: [PATCH] Add type for join method Looking at the code, this method is very forgiving in what it accepts. --- src/Extension/CoreExtension.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Extension/CoreExtension.php b/src/Extension/CoreExtension.php index f8f80ac2f..450e31b5f 100644 --- a/src/Extension/CoreExtension.php +++ b/src/Extension/CoreExtension.php @@ -766,9 +766,9 @@ final class CoreExtension extends AbstractExtension * {{ [1, 2, 3]|join }} * {# returns 123 #} * - * @param array $value An array - * @param string $glue The separator - * @param string|null $and The separator for the last pair + * @param iterable|array|string|float|int|bool|null $value An array + * @param string $glue The separator + * @param string|null $and The separator for the last pair * * @internal */