The canonical commutation relations of the complex scalar field $\phi$ are given by
$$[\phi(t,\vec{x}),\pi(t,\vec{y})]=i\delta^{(3)}(\vec{x}-\vec{y})$$ $$[\phi^{*}(t,\vec{x}),\pi^{*}(t,\vec{y})]=i\delta^{(3)}(\vec{x}-\vec{y})$$
Since $[\phi^{*}(t,\vec{x}),\pi^{*}(t,\vec{y})]=[\phi(t,\vec{x}),\pi(t,\vec{y})]^{*}$, the second commutation relation ought to include a minus sign.
Can someone resolve this apparent contradiction?