Fixed PHP backwards compatibility issue