@@ -1003,11 +1003,11 @@ discard block |
||
| 1003 | 1003 | \array_intersect($needles, $this->keys()->getArray()), |
| 1004 | 1004 | \COUNT_NORMAL |
| 1005 | 1005 | ) |
| 1006 | - === |
|
| 1007 | - \count( |
|
| 1008 | - $needles, |
|
| 1009 | - \COUNT_NORMAL |
|
| 1010 | - ); |
|
| 1006 | + === |
|
| 1007 | + \count( |
|
| 1008 | + $needles, |
|
| 1009 | + \COUNT_NORMAL |
|
| 1010 | + ); |
|
| 1011 | 1011 | } |
| 1012 | 1012 | |
| 1013 | 1013 | /** |
@@ -1062,8 +1062,8 @@ discard block |
||
| 1062 | 1062 | public function containsValues(array $needles): bool |
| 1063 | 1063 | { |
| 1064 | 1064 | return \count(\array_intersect($needles, $this->getArray()), \COUNT_NORMAL) |
| 1065 | - === |
|
| 1066 | - \count($needles, \COUNT_NORMAL); |
|
| 1065 | + === |
|
| 1066 | + \count($needles, \COUNT_NORMAL); |
|
| 1067 | 1067 | } |
| 1068 | 1068 | |
| 1069 | 1069 | /** |
@@ -2516,15 +2516,15 @@ discard block |
||
| 2516 | 2516 | |
| 2517 | 2517 | if ($recursive === true) { |
| 2518 | 2518 | return $this->array_keys_recursive($this->getArray()) |
| 2519 | - === |
|
| 2520 | - \range(0, \count($this->getArray(), \COUNT_RECURSIVE) - 1); |
|
| 2519 | + === |
|
| 2520 | + \range(0, \count($this->getArray(), \COUNT_RECURSIVE) - 1); |
|
| 2521 | 2521 | } |
| 2522 | 2522 | |
| 2523 | 2523 | // non recursive |
| 2524 | 2524 | |
| 2525 | 2525 | return \array_keys($this->getArray()) |
| 2526 | - === |
|
| 2527 | - \range(0, \count($this->getArray(), \COUNT_NORMAL) - 1); |
|
| 2526 | + === |
|
| 2527 | + \range(0, \count($this->getArray(), \COUNT_NORMAL) - 1); |
|
| 2528 | 2528 | } |
| 2529 | 2529 | |
| 2530 | 2530 | /** |
@@ -1932,7 +1932,7 @@ discard block |
||
| 1932 | 1932 | /** |
| 1933 | 1933 | * Get the first key from the current array. |
| 1934 | 1934 | * |
| 1935 | - * @return mixed |
|
| 1935 | + * @return integer|null |
|
| 1936 | 1936 | * <p>Return null if there wasn't a element.</p> |
| 1937 | 1937 | */ |
| 1938 | 1938 | public function firstKey() |
@@ -2946,7 +2946,7 @@ discard block |
||
| 2946 | 2946 | /** |
| 2947 | 2947 | * Get the last key from the current array. |
| 2948 | 2948 | * |
| 2949 | - * @return mixed |
|
| 2949 | + * @return null|integer |
|
| 2950 | 2950 | * <p>Return null if there wasn't a element.</p> |
| 2951 | 2951 | */ |
| 2952 | 2952 | public function lastKey() |
@@ -3329,7 +3329,7 @@ discard block |
||
| 3329 | 3329 | /** |
| 3330 | 3330 | * Get the most used value from the array. |
| 3331 | 3331 | * |
| 3332 | - * @return mixed |
|
| 3332 | + * @return integer|null |
|
| 3333 | 3333 | * <p>Return null if there wasn't a element.</p> |
| 3334 | 3334 | */ |
| 3335 | 3335 | public function mostUsedValue() |
@@ -5426,7 +5426,7 @@ discard block |
||
| 5426 | 5426 | } |
| 5427 | 5427 | |
| 5428 | 5428 | /** |
| 5429 | - * @param mixed $path |
|
| 5429 | + * @param string $path |
|
| 5430 | 5430 | * @param callable $callable |
| 5431 | 5431 | * @param array|null $currentOffset |
| 5432 | 5432 | * |
@@ -5610,7 +5610,7 @@ discard block |
||
| 5610 | 5610 | } |
| 5611 | 5611 | |
| 5612 | 5612 | /** |
| 5613 | - * @param mixed $glue |
|
| 5613 | + * @param string $glue |
|
| 5614 | 5614 | * @param mixed $pieces |
| 5615 | 5615 | * @param bool $useKeys |
| 5616 | 5616 | * |
@@ -50,6 +50,7 @@ |
||
| 50 | 50 | * Merge current items and items of given collections into a new one. |
| 51 | 51 | * |
| 52 | 52 | * @param CollectionInterface ...$collections The collections to merge. |
| 53 | + * @param CollectionInterface[] $collections |
|
| 53 | 54 | * |
| 54 | 55 | * @throws \InvalidArgumentException if any of the given collections are not of the same type |
| 55 | 56 | * |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | /** |
| 30 | 30 | * @param array<mixed> $array |
| 31 | 31 | * |
| 32 | - * @return int|string|null |
|
| 32 | + * @return integer|null |
|
| 33 | 33 | */ |
| 34 | 34 | function array_key_first(array $array) |
| 35 | 35 | { |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | /** |
| 46 | 46 | * @param array<mixed> $array |
| 47 | 47 | * |
| 48 | - * @return int|string|null |
|
| 48 | + * @return null|integer |
|
| 49 | 49 | */ |
| 50 | 50 | function array_key_last(array $array) |
| 51 | 51 | { |