Barcelona's director of institutional relations Albert Soler has confirmed the new deal.
"The club announces that we have reached an agreement to improve his contract in the next three seasons with a better one," he said.
"It was one of the issues that we had left."
— FC Barcelona (@FCBarcelona) July 27, 2016
The 32-year-old Argentine is now contracted to the club until 2019.