src/Config.php
public function getConnectOptions($environment = null)
    {
        if (!$environment) {
            $environment = $this->getDefaultEnvironment();
        }

        $connectOptions = $this->get(sprintf('environments.%s.connectOptions', $environment));
        if (empty($connectOptions)) {
            $connectOptions = array();
        }

        return $connectOptions;
    }
public function getConnectOptions($environment = null)
    {
        if (!$environment) {
            $environment = $this->getDefaultEnvironment();
        }

        $connectOptions = $this->get(sprintf('environments.%s.connectOptions', $environment));
        if (empty($connectOptions)) {
            $connectOptions = array();
        }

        return $connectOptions;
    }
@param string|null $environment

@return array