-
Notifications
You must be signed in to change notification settings - Fork 426
/
arrayFunctions.stub
63 lines (58 loc) · 962 Bytes
/
arrayFunctions.stub
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
/**
* @template TIn of mixed
* @template TReturn of mixed
*
* @param array<TIn> $one
* @param callable(TReturn, TIn): TReturn $two
* @param TReturn $three
*
* @return TReturn
*/
function array_reduce(
array $one,
callable $two,
$three = null
) {}
/**
* @template T of mixed
*
* @param array<T> $one
* @param callable(T, T): int $two
*/
function uasort(
array &$one,
callable $two
): bool {}
/**
* @template T of mixed
*
* @param array<T> $one
* @param callable(T, T): int $two
*/
function usort(
array &$one,
callable $two
): bool {}
/**
* @template T of array-key
*
* @param array<T, mixed> $one
* @param callable(T, T): int $two
*/
function uksort(
array &$one,
callable $two
): bool {}
/**
* @template T of mixed
*
* @param array<T> $one
* @param array<T> $two
* @param callable(T, T): int<-1, 1> $three
*/
function array_udiff(
array $one,
array $two,
callable $three
): int {}