dont cast email to string, use new value method
This commit is contained in:
parent
099883a13d
commit
a65c9259fa
7 changed files with 12 additions and 7 deletions
|
|
@ -39,7 +39,7 @@ class FakeUserRepository implements UserRepository
|
|||
$user = array_find(
|
||||
$this->existingUsers,
|
||||
function (User $user) use ($email) {
|
||||
return (string) $user->getEmail() === (string) $email;
|
||||
return $user->getEmail()->value() === $email->value();
|
||||
}
|
||||
);
|
||||
if ($user === null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue