Fix PHP static method warnings