Skip to content

Commit

Permalink
Add type for join method
Browse files Browse the repository at this point in the history
Looking at the code, this method is very forgiving in what it accepts.
  • Loading branch information
ruudk committed Oct 30, 2024
1 parent 494f010 commit 226f0ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Extension/CoreExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -766,9 +766,9 @@ public static function last(string $charset, $item)
* {{ [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
*/
Expand Down

0 comments on commit 226f0ff

Please sign in to comment.