Skip to content
This repository has been archived by the owner on Feb 5, 2020. It is now read-only.

Commit

Permalink
ensure $connectTimeout parameter for global wrapper as well
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Oct 4, 2017
1 parent b191d80 commit 64d8149
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions rdb/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,20 @@

// ------------- Global functions in namespace r -------------


/**
* @param null $optsOrHost
* @param null $port
* @param null $db
* @param null $apiKey
* @param null $timeout
* @param array|string $optsOrHost
* @param int $port
* @param string $db
* @param string $apiKey
* @param int $timeout
* @param int $connectTimeout
* @return Connection
* @throws RqlDriverError
* @throws \Exception
*/
function connect($optsOrHost = null, $port = null, $db = null, $apiKey = null, $timeout = null)
function connect($optsOrHost = null, $port = null, $db = null, $apiKey = null, $timeout = null, $connectTimeout = null)
{
return new Connection($optsOrHost, $port, $db, $apiKey, $timeout);
return new Connection($optsOrHost, $port, $db, $apiKey, $timeout, $connectTimeout);
}

function db($dbName)
Expand Down

0 comments on commit 64d8149

Please sign in to comment.