From 3e3cbcf4cb4b8116f504a1e8363c7c958067b49a Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 15 Dec 2021 07:57:40 -0600 Subject: [PATCH] rename method --- src/Illuminate/Collections/Collection.php | 4 ++-- src/Illuminate/Collections/LazyCollection.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Illuminate/Collections/Collection.php b/src/Illuminate/Collections/Collection.php index 0eae5e9dd938..3ad5e13ddcf2 100644 --- a/src/Illuminate/Collections/Collection.php +++ b/src/Illuminate/Collections/Collection.php @@ -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); } diff --git a/src/Illuminate/Collections/LazyCollection.php b/src/Illuminate/Collections/LazyCollection.php index 9688e755447a..00fd4ba0df1f 100644 --- a/src/Illuminate/Collections/LazyCollection.php +++ b/src/Illuminate/Collections/LazyCollection.php @@ -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); }