Skip to content

Commit fa8c7b4

Browse files
committed
remove : Remove unused parameter of filter() method
1 parent be11868 commit fa8c7b4

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/kim/present/lib/arrayutils/ArrayUtils.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@
9292
* @method static ArrayUtils fillKeysFrom(iterable $from, mixed $value)
9393
* @method static array fillKeysFromAs(iterable $from, mixed $value)
9494
*
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)
9999
*
100100
* @method ArrayUtils flat(int $dept = 1)
101101
* @method array flatAs(int $dept = 1)
@@ -460,7 +460,7 @@ protected static function __fillKeys(array $from, $value){
460460
* @see \array_filter
461461
* @url https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter
462462
*/
463-
protected static function __filter(array $from, callable $callback, int $flag = 0){
463+
protected static function __filter(array $from, callable $callback) : array{
464464
$array = [];
465465
foreach($from as $key => $value){
466466
if($callback($value, $key, $from))

0 commit comments

Comments
 (0)