Skip to content

Commit

Permalink
rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 15, 2021
1 parent 09689f2 commit 3e3cbcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Collections/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,14 @@ public function contains($key, $operator = null, $value = null)
}

/**
* Determine if an item is missing in the collection.
* Determine if an item is not contained in the collection.
*
* @param mixed $key
* @param mixed $operator
* @param mixed $value
* @return bool
*/
public function missing($key, $operator = null, $value = null)
public function doesntContain($key, $operator = null, $value = null)
{
return ! $this->contains($key, $operator, $value);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Collections/LazyCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,14 @@ public function contains($key, $operator = null, $value = null)
}

/**
* Determine if an item is missing in the enumerable.
* Determine if an item is not contained in the enumerable.
*
* @param mixed $key
* @param mixed $operator
* @param mixed $value
* @return bool
*/
public function missing($key, $operator = null, $value = null)
public function doesntContain($key, $operator = null, $value = null)
{
return ! $this->contains($key, $operator, $value);
}
Expand Down

0 comments on commit 3e3cbcf

Please sign in to comment.