lib/Doctrine/DBAL/DriverManager.php
private static function parseDatabaseUrlQuery(array $url, array $params) : array
    {
        if (! isset($url['query'])) {
            return $params;
        }

        $query = [];

        parse_str($url['query'], $query); // simply ingest query as extra params, e.g. charset or sslmode

        return array_merge($params, $query); // parse_str wipes existing array elements
    }
private static function parseDatabaseUrlQuery(array $url, array $params) : array
    {
        if (! isset($url['query'])) {
            return $params;
        }

        $query = [];

        parse_str($url['query'], $query); // simply ingest query as extra params, e.g. charset or sslmode

        return array_merge($params, $query); // parse_str wipes existing array elements
    }
private static function parseDatabaseUrlQuery ( array $ url , array $ params ) : array { if ( ! isset ( $ url [ 'query' ] ) ) { return $ params ; } $ query = [ ] ; parse_str ( $ url [ 'query' ] , $ query ) ; // simply ingest query as extra params, e.g. charset or sslmode return array_merge ( $ params , $ query ) ; // parse_str wipes existing array elements }
Parses the query part of the given connection URL and resolves the given connection parameters.

@param mixed[] $url    The connection URL parts to evaluate.
@param mixed[] $params The connection parameters to resolve.

@return mixed[] The resolved connection parameters.
Parses the query part of the given connection URL and resolves the given connection parameters .