On the nonlinear dynamics of an ecoepidemic reaction–diffusion model