diff --git a/src/MailEclipse.php b/src/MailEclipse.php index d416fe1..f49ac1f 100644 --- a/src/MailEclipse.php +++ b/src/MailEclipse.php @@ -673,7 +673,7 @@ private static function getMissingParams($arg, $params) } try { - return !is_null($type) + return ! is_null($type) ? $type : new Mocked($arg, \ReeceM\Mocker\Utils\VarStore::singleton()); } catch (\Exception $e) {