zendframework / zend-mime

Mime component from Zend Framework
BSD 3-Clause "New" or "Revised" License
62 stars 37 forks source link

Zend\Mime\Message setter methods should return $this #27

Closed okdana closed 6 years ago

okdana commented 7 years ago

All of the setter methods in Zend\Mime\Part and Zend\Mail\Message return $this, allowing you to chain calls to those methods. Zend\Mime\Message doesn't work this way, for seemingly no particular reason.

The PR simply adds return $this to those few setter functions. There should be no API breakage or other BC issues AFAIK. Tests pass (there weren't any that relied on the existing behaviour, of course).

weierophinney commented 6 years ago

Thanks, @okdana