protected final function makeRefs(array $array) { static $refs = []; foreach ($array as $key => &$value) { $refs[] =& $value; } return $array; }