fix arrayFilter helper function

This commit is contained in:
lubiana 2023-11-30 21:14:17 +01:00
parent 4910317c38
commit 28491fd4ea
4 changed files with 1240 additions and 1315 deletions
src/Infrastructure

View file

@ -7,9 +7,9 @@ use function array_values;
/**
* @template T
* @param array<T> $input
* @param callable(mixed, mixed=):scalar $callable
* @return array<int, T>
* @param T[] $input
* @param callable(T):bool $callable
* @return T[]
*/
function arrayFilter(array $input, callable $callable): array
{