Dispersive analysis of the decay η → 3π