[Tms]: Fixed some php strict errors