Merge pull request #9201 from Linnk/2.x

Consistency improvement: Type declaration of CakeEmail parameter.
This commit is contained in:
Mark Story 2016-08-02 10:40:27 -04:00 committed by GitHub
commit 0a38dbdd09

View file

@ -229,7 +229,7 @@ class SmtpTransport extends AbstractTransport {
* @param CakeEmail $email CakeEmail
* @return array
*/
protected function _prepareFromAddress($email) {
protected function _prepareFromAddress(CakeEmail $email) {
$from = $email->returnPath();
if (empty($from)) {
$from = $email->from();