src/Factory/AbstractDsnAdapterFactory.php
public static function validate(array $options, $adapterName)
    {
        parent::validate($options, $adapterName);

        if (empty($options['dsn'])) {
            return;
        }

        $dsn = new DSN($options['dsn']);
        if (!$dsn->isValid()) {
            throw new \InvalidArgumentException('Invalid DSN: '.$options['dsn']);
        }
    }
public static function validate(array $options, $adapterName)
    {
        parent::validate($options, $adapterName);

        if (empty($options['dsn'])) {
            return;
        }

        $dsn = new DSN($options['dsn']);
        if (!$dsn->isValid()) {
            throw new \InvalidArgumentException('Invalid DSN: '.$options['dsn']);
        }
    }
{@inheritdoc}