Dani Alves
Dani Alves has won three Champions League trophies during a seven-year stint at Barcelona, along with five La Liga titles and three Copa del Rey crownsGetty Images

Manchester United reported target Dani Alves has committed his future to Barcelona with a new contract in a surprise move despite recently suggesting his days at the Camp Nou were numbered, the Spanish club have confirmed.

Being out of contract at the Catalan giants on 30 June and speaking ahead of the Champions League final, the Brazil international said he felt undervalued by his club and was ready to move away.

"I am with the team 200% but with the board about 10%. As it is, I have one foot, half a body and almost my head out of the club," Alves revealed.

Manchester United were said to be ready to take advantage of the situation to secure his services on a free-transfer, as Louis van Gaal is looking for a replacement for out-of-favour Rafael, while earlier this week Alves also suggested he would be open to a move to Milan.

And after Barcelona signed Aleix Vidal on Monday (8 June) as his potential replacement, Alves's agent Dinorah Santana fuelled the speculations about his departure by admitting contact with the Serie A giants as well as offers from other clubs.

"Yes, I can confirm that there has been contact with Milan. But now we have to wait. I have to talk directly with Dani and evaluate together. Milan are not the only club after him, there are other requests that we cannot reveal at this moment. I can only add that I just have to wait and see how things evolve," she said.

But just one day later Barcelona announced a massive turnaround in the situation with the 32-year-old right-back deciding instead to accept the Catalans' proposal to commit his future to the Camp Nou with a new two-year deal – with the option of a third additional season.

"FC Barcelona has announced that Dani Alves has accepted its proposal for the renewal of his contract, which expires on 30 June of this year. The new agreement binding both parties will be for a further two seasons, through to 30 June 2017, with the option of a third additional season," the club confirmed.

"It all means that the Brazilian will be staying around for what will be his eighth season at the club. He joined from Sevilla in 2008 to form part of the new project under manager Pep Guardiola. The full-back has gone on to appear in 343 matches for Barça, more than any other foreigner in the history of the club.

"His 19 titles breakdown is as follows: five Ligas, three Champions Leagues, three Spanish Cups, two European Super Cups, four Spanish Super Cups and two Club World Cups."