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

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

Merged
merged 1 commit into from
Nov 28, 2017
Merged

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

merged 1 commit into from
Nov 28, 2017

Conversation

okdana
Copy link
Contributor

@okdana okdana commented May 31, 2017

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).

@okdana okdana changed the title Zend\Mime\Message setter methods should return $this Zend\Mime\Message setter methods should return $this May 31, 2017
@weierophinney weierophinney merged commit c972601 into zendframework:master Nov 28, 2017
weierophinney added a commit that referenced this pull request Nov 28, 2017
Zend\Mime\Message setter methods should return $this
weierophinney added a commit that referenced this pull request Nov 28, 2017
weierophinney added a commit that referenced this pull request Nov 28, 2017
weierophinney added a commit that referenced this pull request Nov 28, 2017
@weierophinney
Copy link
Member

Thanks, @okdana

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants