Skip to content

Commit 8e3e329

Browse files
Merge branch '8.x'
2 parents 1e70a82 + deccb95 commit 8e3e329

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Collection.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -515,10 +515,10 @@ public function implode($value, $glue = null)
515515
$first = $this->first();
516516

517517
if (is_array($first) || (is_object($first) && ! $first instanceof Stringable)) {
518-
return implode($glue, $this->pluck($value)->all());
518+
return implode($glue ?? '', $this->pluck($value)->all());
519519
}
520520

521-
return implode($value, $this->items);
521+
return implode($value ?? '', $this->items);
522522
}
523523

524524
/**

0 commit comments

Comments
 (0)