The 33-year-old 's deal at Inter was due to expire in the summer and the former AC Milan and Arsenal schemer was keen to secure first-team football to work his way into the France squad ahead of the World Cup finals .