[#83749924] Fixing syntax errors so that update_methods returns a flat array