The extension put an end to speculations regarding the 38-year-old's future as the German World Cup winner inked a contract to keep him with the Bavarian giants until the end of the 2025-26 season.