Skip to content

Commit 6359582

Browse files
committed
suppress errors regarding typing of stlib functions; will be useless when 8.6 comes out anyway
1 parent 3a1f96c commit 6359582

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/pipe.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ function array_unique(int $flags = \SORT_STRING): Closure
398398
}
399399

400400
return function (array $array) use ($flags): array {
401+
/** @phpstan-ignore-next-line */
401402
return \array_unique($array, $flags);
402403
};
403404
}
@@ -472,6 +473,7 @@ function if_else(callable $predicate, callable $then, callable $else): Closure
472473
function implode(string $separator = ""): Closure
473474
{
474475
return function (array $array) use ($separator): string {
476+
/** @phpstan-ignore-next-line */
475477
return \implode($separator, $array);
476478
};
477479
}
@@ -1038,6 +1040,7 @@ function preg_replace(string|array $pattern, string|array $replacement, int $lim
10381040
function rsort(int $flags = SORT_REGULAR): Closure
10391041
{
10401042
return function (array $array) use ($flags): array {
1043+
/** @phpstan-ignore-next-line */
10411044
\rsort($array, $flags);
10421045
return $array;
10431046
};
@@ -1052,6 +1055,7 @@ function rsort(int $flags = SORT_REGULAR): Closure
10521055
function sort(int $flags = SORT_REGULAR): Closure
10531056
{
10541057
return function (array $array) use ($flags): array {
1058+
/** @phpstan-ignore-next-line */
10551059
\sort($array, $flags);
10561060
return $array;
10571061
};

0 commit comments

Comments
 (0)