@@ -58,7 +58,7 @@ class Collection implements ArrayAccess, Arrayable, Countable, IteratorAggregate
58
58
protected static $ proxies = [
59
59
'average ' , 'avg ' , 'contains ' , 'each ' , 'every ' , 'filter ' , 'first ' ,
60
60
'flatMap ' , 'groupBy ' , 'keyBy ' , 'map ' , 'max ' , 'min ' , 'partition ' ,
61
- 'reject ' , 'sortBy ' , 'sortByDesc ' , 'sum ' , 'unique ' ,
61
+ 'reject ' , 'some ' , ' sortBy ' , 'sortByDesc ' , 'sum ' , 'unique ' ,
62
62
];
63
63
64
64
/**
@@ -238,6 +238,19 @@ public function collapse()
238
238
return new static (Arr::collapse ($ this ->items ));
239
239
}
240
240
241
+ /**
242
+ * Alias for the "contains" method.
243
+ *
244
+ * @param mixed $key
245
+ * @param mixed $operator
246
+ * @param mixed $value
247
+ * @return bool
248
+ */
249
+ public function some ($ key , $ operator = null , $ value = null )
250
+ {
251
+ return $ this ->contains ($ key , $ operator , $ value );
252
+ }
253
+
241
254
/**
242
255
* Determine if an item exists in the collection.
243
256
*
@@ -261,19 +274,6 @@ public function contains($key, $operator = null, $value = null)
261
274
return $ this ->contains ($ this ->operatorForWhere (...func_get_args ()));
262
275
}
263
276
264
- /**
265
- * Alias for the "contains" method.
266
- *
267
- * @param mixed $key
268
- * @param mixed $operator
269
- * @param mixed $value
270
- * @return bool
271
- */
272
- public function some ($ key , $ operator = null , $ value = null )
273
- {
274
- return $ this ->contains ($ key , $ operator , $ value );
275
- }
276
-
277
277
/**
278
278
* Determine if an item exists in the collection using strict comparison.
279
279
*
0 commit comments