fixed symfony validator deprecations