@@ -40,6 +40,7 @@ discard block |
||
40 | 40 | * Returns a lazy collection with items from all $collections passed as argument appended together |
41 | 41 | * |
42 | 42 | * @param Traversable|array ...$collections |
43 | + * @param integer[] $collections |
|
43 | 44 | * @return Collection |
44 | 45 | */ |
45 | 46 | public function concat(...$collections) |
@@ -63,7 +64,7 @@ discard block |
||
63 | 64 | * passing $startValue and current key/item as parameters. The output of $function is used as $startValue in |
64 | 65 | * next iteration. The output of $function on last element is the return value of this function. |
65 | 66 | * |
66 | - * @param mixed $startValue |
|
67 | + * @param integer $startValue |
|
67 | 68 | * @param callable $function ($tmpValue, $value, $key) |
68 | 69 | * @return mixed |
69 | 70 | */ |
@@ -148,7 +149,7 @@ discard block |
||
148 | 149 | * ItemNotFound. If $convertToCollection is true and the return value is a collection (array|Traversable) an |
149 | 150 | * instance of Collection will be returned. |
150 | 151 | * |
151 | - * @param mixed $key |
|
152 | + * @param string $key |
|
152 | 153 | * @param bool $convertToCollection |
153 | 154 | * @return Collection|mixed |
154 | 155 | * @throws ItemNotFound |
@@ -261,7 +262,7 @@ discard block |
||
261 | 262 | * Returns true if $value is present in the collection. |
262 | 263 | * |
263 | 264 | * @param mixed $value |
264 | - * @return bool |
|
265 | + * @return \PHPUnit_Framework_Constraint_TraversableContains |
|
265 | 266 | */ |
266 | 267 | public function contains($value) |
267 | 268 | { |
@@ -508,7 +509,7 @@ discard block |
||
508 | 509 | /** |
509 | 510 | * Returns a non-collection of shuffled items from this collection |
510 | 511 | * |
511 | - * @return Collection |
|
512 | + * @return boolean |
|
512 | 513 | */ |
513 | 514 | public function shuffle() |
514 | 515 | { |
@@ -547,7 +548,7 @@ discard block |
||
547 | 548 | /** |
548 | 549 | * Returns true if this collection is empty. False otherwise. |
549 | 550 | * |
550 | - * @return bool |
|
551 | + * @return \PHPUnit_Framework_Constraint_IsEmpty |
|
551 | 552 | */ |
552 | 553 | public function isEmpty() |
553 | 554 | { |
@@ -705,7 +706,7 @@ discard block |
||
705 | 706 | } |
706 | 707 | |
707 | 708 | /** |
708 | - * @return array|Traversable |
|
709 | + * @return CollectionTrait |
|
709 | 710 | */ |
710 | 711 | protected function getItems() |
711 | 712 | { |