lib/Doctrine/DBAL/DriverManager.php
private static function _checkParams(array $params) : void
    {
        // check existence of mandatory parameters

        // driver
        if (! isset($params['driver']) && ! isset($params['driverClass'])) {
            throw DBALException::driverRequired();
        }

        // check validity of parameters

        // driver
        if (isset($params['driver']) && ! isset(self::$_driverMap[$params['driver']])) {
            throw DBALException::unknownDriver($params['driver'], array_keys(self::$_driverMap));
        }

        if (isset($params['driverClass']) && ! in_array(Driver::class, class_implements($params['driverClass'], true))) {
            throw DBALException::invalidDriverClass($params['driverClass']);
        }
    }
private static function _checkParams(array $params) : void
    {
        // check existence of mandatory parameters

        // driver
        if (! isset($params['driver']) && ! isset($params['driverClass'])) {
            throw DBALException::driverRequired();
        }

        // check validity of parameters

        // driver
        if (isset($params['driver']) && ! isset(self::$_driverMap[$params['driver']])) {
            throw DBALException::unknownDriver($params['driver'], array_keys(self::$_driverMap));
        }

        if (isset($params['driverClass']) && ! in_array(Driver::class, class_implements($params['driverClass'], true))) {
            throw DBALException::invalidDriverClass($params['driverClass']);
        }
    }
private static function _checkParams ( array $ params ) : void { // check existence of mandatory parameters // driver if ( ! isset ( $ params [ 'driver' ] ) && ! isset ( $ params [ 'driverClass' ] ) ) { throw DBALException :: driverRequired ( ) ; } // check validity of parameters // driver if ( isset ( $ params [ 'driver' ] ) && ! isset ( self :: $ _driverMap [ $ params [ 'driver' ] ] ) ) { throw DBALException :: unknownDriver ( $ params [ 'driver' ] , array_keys ( self :: $ _driverMap ) ) ; } if ( isset ( $ params [ 'driverClass' ] ) && ! in_array ( Driver :: class , class_implements ( $ params [ 'driverClass' ] , true ) ) ) { throw DBALException :: invalidDriverClass ( $ params [ 'driverClass' ] ) ; } }
Checks the list of parameters.

@param mixed[] $params The list of parameters.

@throws DBALException
Checks the list of parameters .