Skip to content

Commit a609375

Browse files
bug #36751 [Mime] fix bad method call on EmailAddressContains (Kocal)
This PR was merged into the 4.4 branch. Discussion ---------- [Mime] fix bad method call on `EmailAddressContains` | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | - | License | MIT | Doc PR | - There is no method `Address` on [`MailboxHeader`](https://github.com/symfony/symfony/blob/4.4/src/Symfony/Component/Mime/Header/MailboxHeader.php), but a method `getAddress`. Commits ------- 227ebd2 [Mime] fix bad method call on "EmailAddressContains"
2 parents 2dbfeb9 + 227ebd2 commit a609375

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Mime/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)