Skip to content

Commit

Permalink
Update PhpCollection.php
Browse files Browse the repository at this point in the history
  • Loading branch information
izica committed Apr 1, 2019
1 parent 8b65119 commit aa67cdd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions PhpCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,3 +368,11 @@ public function some($function)
return $this->contains($function);
}
}


if(!function_exists('collect')) {
function collect($data)
{
return PhpCollection::collect($data);
}
}

0 comments on commit aa67cdd

Please sign in to comment.