📅  最后修改于: 2022-03-11 14:53:35.946000             🧑  作者: Mango
I Just had the same kind of error by using an assert for an entity :
* @Assert\Email(
* message = "The email '{{ value }}' is not a valid email.",
* mode = 'strict',
* normalizer = 'trim'
* )
Turning it into
* @Assert\Email(
* message = "The email '{{ value }}' is not a valid email.",
* mode = "strict",
* normalizer = "trim"
* )