Issues

ZF2-118: Zend\Mail\Mail::getDefaultTransport() bug

Description

simple bug:



public static function getDefaultTransport()
{
    if (! self::$_defaultTransport instanceof AbstractTransport) {
        $transport = new Transport\Sendmail();
    }
    return self::$_defaultTransport;
}

should be:



public static function getDefaultTransport()
{
    if (! self::$_defaultTransport instanceof AbstractTransport) {
        self::$_defaultTransport = new Transport\Sendmail();
    }
    return self::$_defaultTransport;
}

Comments

fixed. can be pulled here: https://github.com/zendframework/zf2/pull/654

thanks

See: reason.