From 275583687b67dae26a53056b2eb4d0d8257fa717 Mon Sep 17 00:00:00 2001 From: Paul Klimov Date: Fri, 22 Nov 2013 16:46:31 +0200 Subject: [PATCH] "yii\swiftmailer\Mailer::createSwiftObject()" simplified. --- Mailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mailer.php b/Mailer.php index e43798a..d19e013 100644 --- a/Mailer.php +++ b/Mailer.php @@ -192,7 +192,7 @@ class Mailer extends BaseMailer } } unset($config['constructArgs']); - array_unshift($args, ['class' => $className]); + array_unshift($args, $className); $object = call_user_func_array(['Yii', 'createObject'], $args); } else { $object = new $className;