dont cast email to string, use new value method

This commit is contained in:
Yisroel Baum 2026-04-26 10:19:38 +03:00
parent 099883a13d
commit a65c9259fa
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
7 changed files with 12 additions and 7 deletions

View file

@ -11,6 +11,11 @@ class EmailAddress
$this->normalized = $email;
}
public function value(): string
{
return $this->normalized;
}
public function __toString(): string
{
return $this->normalized;