|
92 | 92 | * @method static ArrayUtils fillKeysFrom(iterable $from, mixed $value) |
93 | 93 | * @method static array fillKeysFromAs(iterable $from, mixed $value) |
94 | 94 | * |
95 | | - * @method ArrayUtils filter(callable $callback, int $flag = 0) |
96 | | - * @method array filterAs(callable $callback, int $flag = 0) |
97 | | - * @method static ArrayUtils filterFrom(iterable $from, callable $callback, int $flag = 0) |
98 | | - * @method static array filterFromAs(iterable $from, callable $callback, int $flag = 0) |
| 95 | + * @method ArrayUtils filter(callable $callback) |
| 96 | + * @method array filterAs(callable $callback) |
| 97 | + * @method static ArrayUtils filterFrom(iterable $from, callable $callback) |
| 98 | + * @method static array filterFromAs(iterable $from, callable $callback) |
99 | 99 | * |
100 | 100 | * @method ArrayUtils flat(int $dept = 1) |
101 | 101 | * @method array flatAs(int $dept = 1) |
@@ -460,7 +460,7 @@ protected static function __fillKeys(array $from, $value){ |
460 | 460 | * @see \array_filter |
461 | 461 | * @url https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter |
462 | 462 | */ |
463 | | - protected static function __filter(array $from, callable $callback, int $flag = 0){ |
| 463 | + protected static function __filter(array $from, callable $callback) : array{ |
464 | 464 | $array = []; |
465 | 465 | foreach($from as $key => $value){ |
466 | 466 | if($callback($value, $key, $from)) |
|
0 commit comments