Skip to content

Commit

Permalink
Merge branch '6.4' into 7.2
Browse files Browse the repository at this point in the history
* 6.4:
  [psalm] ensureOverrideAttribute="false"
  [Semaphore] allow redis cluster/sentinel dsn
  [MIME] use address for body at PathHeader
  • Loading branch information
nicolas-grekas committed Feb 19, 2025
2 parents 2fc3b4b + ac537b6 commit 87ca220
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Header/PathHeader.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ public function getAddress(): Address

public function getBodyAsString(): string
{
return '<'.$this->address->toString().'>';
return '<'.$this->address->getEncodedAddress().'>';
}
}
8 changes: 8 additions & 0 deletions Tests/Header/HeadersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,4 +346,12 @@ public function testSetHeaderParameterNotParameterized()
$this->expectException(\LogicException::class);
$headers->setHeaderParameter('Content-Disposition', 'name', 'foo');
}

public function testPathHeaderHasNoName()
{
$headers = new Headers();

$headers->addPathHeader('Return-Path', new Address('some@path', 'any ignored name'));
$this->assertSame('<some@path>', $headers->get('Return-Path')->getBodyAsString());
}
}

0 comments on commit 87ca220

Please sign in to comment.