I have no clue what array $origin is supposed to be. Here is the full function - or whatever these thingies are called:
/** * If the $key exists in the $origin array then it will return its value. * * @param mixed $key * @param mixed $defaultValue * * @return mixed */ public static function getValue($key, array $origin, $defaultValue = null) { return array_key_exists($key, $origin) ? $origin[$key] : $defaultValue; }
Here’s someone who had the same problem. He solved it using magic