Updating declaration of User::beforeSav() to User::beforeSave( = array())