@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | /** |
148 | 148 | * Returns a non-lazy collection of shuffled items from $collection. |
149 | 149 | * |
150 | - * @param array|Traversable $collection |
|
150 | + * @param CollectionTrait $collection |
|
151 | 151 | * @return Collection |
152 | 152 | */ |
153 | 153 | function shuffle($collection) |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | * Returns a non-lazy collection sorted using $collection($item1, $item2, $key1, $key2 ). $collection should |
340 | 340 | * return true if first item is larger than the second and false otherwise. |
341 | 341 | * |
342 | - * @param array|Traversable $collection |
|
342 | + * @param CollectionTrait $collection |
|
343 | 343 | * @param callable $function ($value1, $value2, $key1, $key2) |
344 | 344 | * @return Collection |
345 | 345 | */ |
@@ -446,7 +446,7 @@ discard block |
||
446 | 446 | /** |
447 | 447 | * Executes $function for each item in $collection |
448 | 448 | * |
449 | - * @param array|Traversable $collection |
|
449 | + * @param CollectionTrait $collection |
|
450 | 450 | * @param callable $function ($value, $key) |
451 | 451 | * @return Collection |
452 | 452 | */ |
@@ -1428,7 +1428,7 @@ discard block |
||
1428 | 1428 | * Returns a lazy collection of data extracted from $collection items by dot separated key path. Supports the * |
1429 | 1429 | * wildcard. If a key contains \ or * it must be escaped using \ character. |
1430 | 1430 | * |
1431 | - * @param array|Traversable $collection |
|
1431 | + * @param CollectionTrait $collection |
|
1432 | 1432 | * @param mixed $keyPath |
1433 | 1433 | * @return Collection |
1434 | 1434 | */ |