php property error fixed