fix trimming for email in person / thirdparty

This commit is contained in:
2022-03-31 12:51:53 +02:00
parent f47fb17b8d
commit c7762dd6d2
2 changed files with 2 additions and 9 deletions

View File

@@ -762,8 +762,7 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
*/
public function setEmail($email = null)
{
$email = trim($email);
$this->email = $email;
$this->email = trim((string) $email);
return $this;
}