Skip to content

Commit

Permalink
Fix: explode_and_trim() returns empty array (#12820)
Browse files Browse the repository at this point in the history
  • Loading branch information
blankse committed Aug 4, 2022
1 parent 8135429 commit 0feca5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helper-functions.php
Expand Up @@ -371,7 +371,7 @@ function rscandir($base = '', &$data = [])
*
* @phpstan-param non-empty-string $delimiter
*/
function explode_and_trim($delimiter, $string = '', $limit = 0, $useArrayFilter = true)
function explode_and_trim($delimiter, $string, $limit = PHP_INT_MAX, $useArrayFilter = true)
{
$exploded = explode($delimiter, $string, $limit);
foreach ($exploded as $key => $value) {
Expand Down

0 comments on commit 0feca5f

Please sign in to comment.