Skip to content

Commit 27bdf59

Browse files
committed
[Mime] fix bad method call on "EmailAddressContains"
There is no method `Address` on `MailboxHeader`, but a method `getAddress`.
1 parent 7a583ff commit 27bdf59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Test/Constraint/EmailAddressContains.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected function matches($message): bool
4848

4949
$header = $message->getHeaders()->get($this->headerName);
5050
if ($header instanceof MailboxHeader) {
51-
return $this->expectedValue === $header->Address()->getAddress();
51+
return $this->expectedValue === $header->getAddress()->getAddress();
5252
} elseif ($header instanceof MailboxListHeader) {
5353
foreach ($header->getAddresses() as $address) {
5454
if ($this->expectedValue === $address->getAddress()) {

0 commit comments

Comments
 (0)