Skip to content

Commit

Permalink
Removing default option due to conflicts with Laravel
Browse files Browse the repository at this point in the history
  • Loading branch information
Uniquoooo committed Dec 21, 2015
1 parent 4864746 commit 0ce71c6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Discord/Helpers/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ class Collection extends BaseCollection
*
* @param mixed $key
* @param mixed $name
* @param mixed $default
* @return mixed
*/
public function get($key, $value, $default = null)
public function get($key, $value = null)
{
foreach ($this->items as $item) {
if (isset($item[$key])) {
Expand All @@ -25,6 +24,6 @@ public function get($key, $value, $default = null)
}
}

return $default;
return null;
}
}

0 comments on commit 0ce71c6

Please sign in to comment.