mirror of
https://github.com/danog/endtoend-test-psl.git
synced 2024-11-29 20:29:52 +01:00
remove usage of closure generics. (#176)
This commit is contained in:
parent
590e9d5363
commit
eee8390be7
@ -30,9 +30,6 @@ function diff(iterable $first, iterable $second, iterable ...$rest): array
|
||||
return array_diff(from_iterable($first), from_iterable($second), ...Vec\map(
|
||||
$rest,
|
||||
/**
|
||||
* @template Tk of array-key
|
||||
* @template Tv
|
||||
*
|
||||
* @param iterable<Tk, Tv> $iterable
|
||||
*
|
||||
* @return array<Tk, Tv>
|
||||
|
@ -30,9 +30,6 @@ function diff_by_key(iterable $first, iterable $second, iterable ...$rest): arra
|
||||
return array_diff_key(from_iterable($first), from_iterable($second), ...Vec\map(
|
||||
$rest,
|
||||
/**
|
||||
* @template Tk of array-key
|
||||
* @template Tv
|
||||
*
|
||||
* @param iterable<Tk, Tv> $iterable
|
||||
*
|
||||
* @return array<Tk, Tv>
|
||||
|
@ -30,9 +30,6 @@ function intersect(iterable $first, iterable $second, iterable ...$rest): array
|
||||
return array_intersect(from_iterable($first), from_iterable($second), ...Vec\map(
|
||||
$rest,
|
||||
/**
|
||||
* @template Tk of array-key
|
||||
* @template Tv
|
||||
*
|
||||
* @param iterable<Tk, Tv> $iterable
|
||||
*
|
||||
* @return array<Tk, Tv>
|
||||
|
@ -30,9 +30,6 @@ function intersect_by_key(iterable $first, iterable $second, iterable ...$rest):
|
||||
return array_intersect_key(from_iterable($first), from_iterable($second), ...Vec\map(
|
||||
$rest,
|
||||
/**
|
||||
* @template Tk of array-key
|
||||
* @template Tv
|
||||
*
|
||||
* @param iterable<Tk, Tv> $iterable
|
||||
*
|
||||
* @return array<Tk, Tv>
|
||||
|
@ -36,12 +36,10 @@ function pipe(callable ...$stages): callable
|
||||
return static fn ($input) => reduce(
|
||||
$stages,
|
||||
/**
|
||||
* @template IO
|
||||
* @param T $input
|
||||
* @param (callable(T): T) $next
|
||||
*
|
||||
* @param IO $input
|
||||
* @param (callable(IO): IO) $next
|
||||
*
|
||||
* @return IO
|
||||
* @return T
|
||||
*/
|
||||
static fn ($input, callable $next) => $next($input),
|
||||
$input
|
||||
|
Loading…
Reference in New Issue
Block a user