The return type could not be reliably inferred; please add a @return annotation.
Our type inference engine in quite powerful, but sometimes the code does not
provide enough clues to go by. In these cases we request you to add a @return
annotation as described here.
Loading history...
39
{
40
29
$value = $array[$key] ?? $default;
41
42
29
unset($array[$key]);
43
44
29
return $value;
45
}
46
47
29
public static function mirror(array $array): array
48
{
49
29
return array_combine($array, $array);
50
}
51
52
26
public static function createUniquePairs(array $array): array
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.