Expected PlainValue, got ''' at position 81 in class App\Entity\User. code example
Example 1: Expected PlainValue, got ''' at position 81 in class App\Entity\User.
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"
* )
Example 2: Expected PlainValue, got ''' at position 81 in class App\Entity\User.
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"
* )