mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Merge pull request #8982 from kolorafa/patch-1
Can't override CakeEmail class and use deliver
This commit is contained in:
commit
9cc515bf9e
1 changed files with 1 additions and 1 deletions
|
@ -1203,7 +1203,7 @@ class CakeEmail {
|
||||||
* @throws SocketException
|
* @throws SocketException
|
||||||
*/
|
*/
|
||||||
public static function deliver($to = null, $subject = null, $message = null, $transportConfig = 'fast', $send = true) {
|
public static function deliver($to = null, $subject = null, $message = null, $transportConfig = 'fast', $send = true) {
|
||||||
$class = __CLASS__;
|
$class = get_called_class();
|
||||||
/** @var CakeEmail $instance */
|
/** @var CakeEmail $instance */
|
||||||
$instance = new $class($transportConfig);
|
$instance = new $class($transportConfig);
|
||||||
if ($to !== null) {
|
if ($to !== null) {
|
||||||
|
|
Loading…
Reference in a new issue