Skip to content

Commit 8bb582e

Browse files
committed
fix: ensure email mapper maps to symfony emails only
1 parent 69eddbb commit 8bb582e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mailer/src/EmailToSymfonyEmailMapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function canMap(mixed $from, mixed $to): bool
2828
return true;
2929
}
3030

31-
return false;
31+
return $to instanceof SymfonyEmail;
3232
}
3333

3434
public function map(mixed $from, mixed $to): SymfonyEmail

0 commit comments

Comments
 (0)