When populating a form with a user model, the email field populates with the number 1.
This happens on EmailType and TextType
Creating a second field with any other name, and populating that field in the user model works fine, it's just the name 'email' that causes it to fail.
Adding
'data' => $options['data']->email ?? null,
Seems to resolve the issue, but it's strange and a bit worrying that this issue occurs, and this step could easily be forgotten.
When populating a form with a user model, the email field populates with the number 1.
This happens on EmailType and TextType
Creating a second field with any other name, and populating that field in the user model works fine, it's just the name 'email' that causes it to fail.
Adding
Seems to resolve the issue, but it's strange and a bit worrying that this issue occurs, and this step could easily be forgotten.