Skip to content

Commit

Permalink
Fix Collection@firstWhere() return docblock (laravel#25988)
Browse files Browse the repository at this point in the history
Like Collection@first(), this method will return
an item in the collection (or null), not an
instance of the collection.
  • Loading branch information
derekmd authored and taylorotwell committed Oct 7, 2018
1 parent ce0e5df commit be472d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ public function first(callable $callback = null, $default = null)
* @param string $key
* @param mixed $operator
* @param mixed $value
* @return static
* @return mixed
*/
public function firstWhere($key, $operator, $value = null)
{
Expand Down

0 comments on commit be472d4

Please sign in to comment.