mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Merge pull request #9201 from Linnk/2.x
Consistency improvement: Type declaration of CakeEmail parameter.
This commit is contained in:
commit
0a38dbdd09
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue