On 5 August 2015 he was promoted to the first team by new manager Rafael Benítez,[4] and made his debut four days later, coming on as a late substitute for Kiko Casilla in a 0–0 friendly draw against Vålerenga Fotball.
[13] Three days later he made his La Liga bow in a 2–0 win at former club Cádiz, to finally play in the top flight at the age of 26.
[14] After ten consecutive games in all competitions – including once David Soria had returned from injury – he lost his place to him in February.
[17] On 15 July 2022, hours after leaving Getafe, Yáñez signed a three-year deal with Málaga CF in the second division.
[20] On 12 July 2023, free agent Yáñez signed a three-year contract with Sporting de Gijón, still in division two.