We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c24718 commit 227ebd2Copy full SHA for 227ebd2
src/Symfony/Component/Mime/Test/Constraint/EmailAddressContains.php
@@ -48,7 +48,7 @@ protected function matches($message): bool
48
49
$header = $message->getHeaders()->get($this->headerName);
50
if ($header instanceof MailboxHeader) {
51
- return $this->expectedValue === $header->Address()->getAddress();
+ return $this->expectedValue === $header->getAddress()->getAddress();
52
} elseif ($header instanceof MailboxListHeader) {
53
foreach ($header->getAddresses() as $address) {
54
if ($this->expectedValue === $address->getAddress()) {
0 commit comments