Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit a1dc7c9

Browse files
committed
Adds CHANGELOG entry for #148
1 parent c741371 commit a1dc7c9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ All notable changes to this project will be documented in this file, in reverse
66

77
### Added
88

9+
- [#148](https://github.com/zendframework/zend-mail/pull/148) adds the optional constructor argument `$comment` and the method `getComment()` to the class
10+
`Zend\Mail\Address`. When a comment is present, `toString()` will include it in the representation.
11+
12+
- [#148](https://github.com/zendframework/zend-mail/pull/148) adds the method `Zend\Mail\Address::fromString(string $address, $comment = null) : Address`.
13+
The method can be used to generate an instance from a string containing a `(name)?<email>` value.
14+
The `$comment` argument can be used to associate a comment with the address.
15+
916
- [#213](https://github.com/zendframework/zend-mail/pull/213) re-adds support for PHP 5.6 and 7.0; ZF policy is never
1017
to bump the major version of a PHP requirement unless the package is bumping major version.
1118

@@ -23,6 +30,9 @@ All notable changes to this project will be documented in this file, in reverse
2330

2431
### Fixed
2532

33+
- [#148](https://github.com/zendframework/zend-mail/pull/148) fixes how `Zend\Mail\Header\AbstractAddressList` parses address values, ensuring
34+
that they now retain any address comment discovered to include in the generated `Zend\Mail\Address` instances.
35+
2636
- [#147](https://github.com/zendframework/zend-mail/pull/147) fixes how address lists are parsed, expanding the functionality to allow either
2737
`,` or `;` delimiters (or both in combination).
2838

0 commit comments

Comments
 (0)