Skip to content

Commit

Permalink
updated arr facade collect signature
Browse files Browse the repository at this point in the history
  • Loading branch information
BenRutlandWeb committed Feb 13, 2021
1 parent b879f68 commit ea03195
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Radiate/Support/Facades/Arr.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,18 @@
class Arr
{
/**
* Make a new instance of stringable
* Make a new instance of Collection
*
* @param array $array
* @return \Radiate\Support\Collection
*/
public static function collect(array $array)
public static function collect(array $array = [])
{
return new Collection($array);
}

/**
* Dynamically call the Stringable class
* Dynamically call the Collection class
*
* @param string $method
* @param array $parameters
Expand Down

0 comments on commit ea03195

Please sign in to comment.