mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix trimming for email in person / thirdparty
This commit is contained in:
parent
f47fb17b8d
commit
c7762dd6d2
@ -1568,13 +1568,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
||||
|
||||
public function setEmail(?string $email): self
|
||||
{
|
||||
if (null === $email) {
|
||||
$email = '';
|
||||
}
|
||||
|
||||
$email = trim($email);
|
||||
|
||||
$this->email = $email;
|
||||
$this->email = trim((string) $email);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user