@@ -609,8 +609,8 @@ discard block |
||
609 | 609 | } |
610 | 610 | |
611 | 611 | /** |
612 | - * @param mixed $path |
|
613 | - * @param \callable $callable |
|
612 | + * @param string $path |
|
613 | + * @param \Closure $callable |
|
614 | 614 | * @param null|array $currentOffset |
615 | 615 | */ |
616 | 616 | protected function callAtPath($path, $callable, &$currentOffset = null) |
@@ -1763,7 +1763,7 @@ discard block |
||
1763 | 1763 | } |
1764 | 1764 | |
1765 | 1765 | /** |
1766 | - * @param mixed $glue |
|
1766 | + * @param string $glue |
|
1767 | 1767 | * @param string|array|static $pieces |
1768 | 1768 | * @param bool $useKeys |
1769 | 1769 | * |
@@ -3639,7 +3639,7 @@ discard block |
||
3639 | 3639 | /** |
3640 | 3640 | * Apply the given function to every element in the array, discarding the results. |
3641 | 3641 | * |
3642 | - * @param \callable $callable |
|
3642 | + * @param \Closure $callable |
|
3643 | 3643 | * @param bool $recursive <p>Whether array will be walked recursively or no</p> |
3644 | 3644 | * |
3645 | 3645 | * @return static <p>(Mutable) Return this Arrayy object, with modified elements.</p> |
@@ -960,25 +960,25 @@ discard block |
||
960 | 960 | { |
961 | 961 | if ($recursive === true) { |
962 | 962 | return \count( |
963 | - \array_intersect($needles, $this->keys(true)->getArray()), |
|
964 | - COUNT_RECURSIVE |
|
965 | - ) |
|
966 | - === |
|
967 | - \count( |
|
968 | - $needles, |
|
969 | - COUNT_RECURSIVE |
|
970 | - ); |
|
963 | + \array_intersect($needles, $this->keys(true)->getArray()), |
|
964 | + COUNT_RECURSIVE |
|
965 | + ) |
|
966 | + === |
|
967 | + \count( |
|
968 | + $needles, |
|
969 | + COUNT_RECURSIVE |
|
970 | + ); |
|
971 | 971 | } |
972 | 972 | |
973 | 973 | return \count( |
974 | - \array_intersect($needles, $this->keys()->getArray()), |
|
975 | - COUNT_NORMAL |
|
976 | - ) |
|
977 | - === |
|
978 | - \count( |
|
979 | - $needles, |
|
980 | - COUNT_NORMAL |
|
981 | - ); |
|
974 | + \array_intersect($needles, $this->keys()->getArray()), |
|
975 | + COUNT_NORMAL |
|
976 | + ) |
|
977 | + === |
|
978 | + \count( |
|
979 | + $needles, |
|
980 | + COUNT_NORMAL |
|
981 | + ); |
|
982 | 982 | } |
983 | 983 | |
984 | 984 | /** |
@@ -1031,8 +1031,8 @@ discard block |
||
1031 | 1031 | public function containsValues(array $needles): bool |
1032 | 1032 | { |
1033 | 1033 | return \count(\array_intersect($needles, $this->array), COUNT_NORMAL) |
1034 | - === |
|
1035 | - \count($needles, COUNT_NORMAL); |
|
1034 | + === |
|
1035 | + \count($needles, COUNT_NORMAL); |
|
1036 | 1036 | } |
1037 | 1037 | |
1038 | 1038 | /** |
@@ -2379,15 +2379,15 @@ discard block |
||
2379 | 2379 | |
2380 | 2380 | if ($recursive === true) { |
2381 | 2381 | return $this->array_keys_recursive($this->array) |
2382 | - === |
|
2383 | - \range(0, \count($this->array, COUNT_RECURSIVE) - 1); |
|
2382 | + === |
|
2383 | + \range(0, \count($this->array, COUNT_RECURSIVE) - 1); |
|
2384 | 2384 | } |
2385 | 2385 | |
2386 | 2386 | // non recursive |
2387 | 2387 | |
2388 | 2388 | return \array_keys($this->array) |
2389 | - === |
|
2390 | - \range(0, \count($this->array, COUNT_NORMAL) - 1); |
|
2389 | + === |
|
2390 | + \range(0, \count($this->array, COUNT_NORMAL) - 1); |
|
2391 | 2391 | } |
2392 | 2392 | |
2393 | 2393 | /** |