📌  相关文章
📜  预期的 PlainValue,在类 App\Entity\User 中的位置 81 处得到“'”. - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:35.946000             🧑  作者: Mango

代码示例1
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"
     * )