Consistency with other methods: Type declaration of CakeEmail parameter.

This commit is contained in:
Juan I. Benavides 2016-08-02 02:30:43 -05:00
parent 8818b9094c
commit 60bd98a593

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();