Miralem Pjanic har underskrevet en toårig aftale med Sharjah FC, han kommer til klubben på en fri transfer fra FC Barcelona.