mirror of
https://github.com/danog/endtoend-test-psl.git
synced 2024-11-30 04:39:48 +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(
|
return array_diff(from_iterable($first), from_iterable($second), ...Vec\map(
|
||||||
$rest,
|
$rest,
|
||||||
/**
|
/**
|
||||||
* @template Tk of array-key
|
|
||||||
* @template Tv
|
|
||||||
*
|
|
||||||
* @param iterable<Tk, Tv> $iterable
|
* @param iterable<Tk, Tv> $iterable
|
||||||
*
|
*
|
||||||
* @return array<Tk, Tv>
|
* @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(
|
return array_diff_key(from_iterable($first), from_iterable($second), ...Vec\map(
|
||||||
$rest,
|
$rest,
|
||||||
/**
|
/**
|
||||||
* @template Tk of array-key
|
|
||||||
* @template Tv
|
|
||||||
*
|
|
||||||
* @param iterable<Tk, Tv> $iterable
|
* @param iterable<Tk, Tv> $iterable
|
||||||
*
|
*
|
||||||
* @return array<Tk, Tv>
|
* @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(
|
return array_intersect(from_iterable($first), from_iterable($second), ...Vec\map(
|
||||||
$rest,
|
$rest,
|
||||||
/**
|
/**
|
||||||
* @template Tk of array-key
|
|
||||||
* @template Tv
|
|
||||||
*
|
|
||||||
* @param iterable<Tk, Tv> $iterable
|
* @param iterable<Tk, Tv> $iterable
|
||||||
*
|
*
|
||||||
* @return array<Tk, Tv>
|
* @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(
|
return array_intersect_key(from_iterable($first), from_iterable($second), ...Vec\map(
|
||||||
$rest,
|
$rest,
|
||||||
/**
|
/**
|
||||||
* @template Tk of array-key
|
|
||||||
* @template Tv
|
|
||||||
*
|
|
||||||
* @param iterable<Tk, Tv> $iterable
|
* @param iterable<Tk, Tv> $iterable
|
||||||
*
|
*
|
||||||
* @return array<Tk, Tv>
|
* @return array<Tk, Tv>
|
||||||
|
@ -36,12 +36,10 @@ function pipe(callable ...$stages): callable
|
|||||||
return static fn ($input) => reduce(
|
return static fn ($input) => reduce(
|
||||||
$stages,
|
$stages,
|
||||||
/**
|
/**
|
||||||
* @template IO
|
* @param T $input
|
||||||
|
* @param (callable(T): T) $next
|
||||||
*
|
*
|
||||||
* @param IO $input
|
* @return T
|
||||||
* @param (callable(IO): IO) $next
|
|
||||||
*
|
|
||||||
* @return IO
|
|
||||||
*/
|
*/
|
||||||
static fn ($input, callable $next) => $next($input),
|
static fn ($input, callable $next) => $next($input),
|
||||||
$input
|
$input
|
||||||
|
Loading…
Reference in New Issue
Block a user