Skip to content

Commit 739d847

Browse files
committed
fix arg passing in doesntContain
1 parent 588537d commit 739d847

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Illuminate/Collections/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public function contains($key, $operator = null, $value = null)
186186
*/
187187
public function doesntContain($key, $operator = null, $value = null)
188188
{
189-
return ! $this->contains($key, $operator, $value);
189+
return ! $this->contains(...func_get_args());
190190
}
191191

192192
/**

src/Illuminate/Collections/LazyCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public function contains($key, $operator = null, $value = null)
215215
*/
216216
public function doesntContain($key, $operator = null, $value = null)
217217
{
218-
return ! $this->contains($key, $operator, $value);
218+
return ! $this->contains(...func_get_args());
219219
}
220220

221221
/**

0 commit comments

Comments
 (0)