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
41
$value = $array[$key] ?? $default;
41
42
41
unset($array[$key]);
43
44
41
return $value;
45
}
46
47
41
public static function mirror(array $array): array
48
{
49
41
return array_combine($array, $array);
50
}
51
52
38
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.