@@ -2893,7 +2893,7 @@ discard block |
||
2893 | 2893 | /** |
2894 | 2894 | * Reduce the current array via callable e.g. anonymous-function. |
2895 | 2895 | * |
2896 | - * @param \callable $callable |
|
2896 | + * @param \Closure $callable |
|
2897 | 2897 | * @param array $init |
2898 | 2898 | * |
2899 | 2899 | * @return static |
@@ -3777,7 +3777,7 @@ discard block |
||
3777 | 3777 | /** |
3778 | 3778 | * Apply the given function to every element in the array, discarding the results. |
3779 | 3779 | * |
3780 | - * @param \callable $callable |
|
3780 | + * @param \Closure $callable |
|
3781 | 3781 | * @param bool $recursive <p>Whether array will be walked recursively or no</p> |
3782 | 3782 | * |
3783 | 3783 | * @return static |
@@ -3875,8 +3875,8 @@ discard block |
||
3875 | 3875 | } |
3876 | 3876 | |
3877 | 3877 | /** |
3878 | - * @param mixed $path |
|
3879 | - * @param \callable $callable |
|
3878 | + * @param string $path |
|
3879 | + * @param \Closure $callable |
|
3880 | 3880 | * @param array|null $currentOffset |
3881 | 3881 | */ |
3882 | 3882 | protected function callAtPath($path, $callable, &$currentOffset = null) |
@@ -4026,7 +4026,7 @@ discard block |
||
4026 | 4026 | } |
4027 | 4027 | |
4028 | 4028 | /** |
4029 | - * @param mixed $glue |
|
4029 | + * @param string $glue |
|
4030 | 4030 | * @param array|static|string $pieces |
4031 | 4031 | * @param bool $useKeys |
4032 | 4032 | * |
@@ -956,25 +956,25 @@ discard block |
||
956 | 956 | { |
957 | 957 | if ($recursive === true) { |
958 | 958 | return \count( |
959 | - \array_intersect($needles, $this->keys(true)->getArray()), |
|
960 | - \COUNT_RECURSIVE |
|
961 | - ) |
|
962 | - === |
|
963 | - \count( |
|
964 | - $needles, |
|
965 | - \COUNT_RECURSIVE |
|
966 | - ); |
|
959 | + \array_intersect($needles, $this->keys(true)->getArray()), |
|
960 | + \COUNT_RECURSIVE |
|
961 | + ) |
|
962 | + === |
|
963 | + \count( |
|
964 | + $needles, |
|
965 | + \COUNT_RECURSIVE |
|
966 | + ); |
|
967 | 967 | } |
968 | 968 | |
969 | 969 | return \count( |
970 | - \array_intersect($needles, $this->keys()->getArray()), |
|
971 | - \COUNT_NORMAL |
|
972 | - ) |
|
973 | - === |
|
974 | - \count( |
|
975 | - $needles, |
|
976 | - \COUNT_NORMAL |
|
977 | - ); |
|
970 | + \array_intersect($needles, $this->keys()->getArray()), |
|
971 | + \COUNT_NORMAL |
|
972 | + ) |
|
973 | + === |
|
974 | + \count( |
|
975 | + $needles, |
|
976 | + \COUNT_NORMAL |
|
977 | + ); |
|
978 | 978 | } |
979 | 979 | |
980 | 980 | /** |
@@ -1029,8 +1029,8 @@ discard block |
||
1029 | 1029 | public function containsValues(array $needles): bool |
1030 | 1030 | { |
1031 | 1031 | return \count(\array_intersect($needles, $this->getArray()), \COUNT_NORMAL) |
1032 | - === |
|
1033 | - \count($needles, \COUNT_NORMAL); |
|
1032 | + === |
|
1033 | + \count($needles, \COUNT_NORMAL); |
|
1034 | 1034 | } |
1035 | 1035 | |
1036 | 1036 | /** |
@@ -2236,15 +2236,15 @@ discard block |
||
2236 | 2236 | |
2237 | 2237 | if ($recursive === true) { |
2238 | 2238 | return $this->array_keys_recursive($this->getArray()) |
2239 | - === |
|
2240 | - \range(0, \count($this->getArray(), \COUNT_RECURSIVE) - 1); |
|
2239 | + === |
|
2240 | + \range(0, \count($this->getArray(), \COUNT_RECURSIVE) - 1); |
|
2241 | 2241 | } |
2242 | 2242 | |
2243 | 2243 | // non recursive |
2244 | 2244 | |
2245 | 2245 | return \array_keys($this->getArray()) |
2246 | - === |
|
2247 | - \range(0, \count($this->getArray(), \COUNT_NORMAL) - 1); |
|
2246 | + === |
|
2247 | + \range(0, \count($this->getArray(), \COUNT_NORMAL) - 1); |
|
2248 | 2248 | } |
2249 | 2249 | |
2250 | 2250 | /** |
@@ -2777,7 +2777,7 @@ discard block |
||
2777 | 2777 | $this->iteratorClass, |
2778 | 2778 | false |
2779 | 2779 | )->prependToEachKey($suffix) |
2780 | - ->toArray(); |
|
2780 | + ->toArray(); |
|
2781 | 2781 | } else { |
2782 | 2782 | $result[$key . $suffix] = $item; |
2783 | 2783 | } |
@@ -2812,7 +2812,7 @@ discard block |
||
2812 | 2812 | $this->iteratorClass, |
2813 | 2813 | false |
2814 | 2814 | )->prependToEachValue($suffix) |
2815 | - ->toArray(); |
|
2815 | + ->toArray(); |
|
2816 | 2816 | } elseif (\is_object($item)) { |
2817 | 2817 | $result[$key] = $item; |
2818 | 2818 | } else { |