mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +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
|
* @param CakeEmail $email CakeEmail
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
protected function _prepareFromAddress($email) {
|
protected function _prepareFromAddress(CakeEmail $email) {
|
||||||
$from = $email->returnPath();
|
$from = $email->returnPath();
|
||||||
if (empty($from)) {
|
if (empty($from)) {
|
||||||
$from = $email->from();
|
$from = $email->from();
|
||||||
|
|
Loading…
Add table
Reference in a new issue