private function createGeneratorReturningArray(array $array) { foreach ($array as $key => $value) { (yield $key => $value); } }