Skip to content

Commit

Permalink
Fix PHP Warning: Declaration of Kdyby\Redis\Driver\PhpRedisDriver::co…
Browse files Browse the repository at this point in the history
…nnect

Issue Kdyby#128
  • Loading branch information
kropacekt committed Oct 10, 2023
1 parent 15f5274 commit 62b1caf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Kdyby/Redis/Driver/PhpRedisDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class PhpRedisDriver extends \Redis implements Kdyby\Redis\IRedisDriver
/**
* {@inheritdoc}
*/
public function connect($host, $port = NULL, $timeout = NULL, $retry_interval = NULL)
public function connect($host, $port = NULL, $timeout = NULL, $persistent_id = NULL, $retry_interval = NULL, $read_timeout = NULL, $context = NULL)
{
$args = func_get_args();
return call_user_func_array('parent::connect', $args);
Expand Down
2 changes: 1 addition & 1 deletion src/Kdyby/Redis/IRedisDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function isConnected();
* @param int $timeout value in seconds (optional, default is 0 meaning unlimited)
* @return bool
*/
function connect($host, $port = NULL, $timeout = NULL, $retry_interval = NULL);
function connect($host, $port = NULL, $timeout = NULL, $persistent_id = NULL, $retry_interval = NULL, $read_timeout = NULL, $context = NULL);

/**
* Change the selected database for the current connection.
Expand Down

0 comments on commit 62b1caf

Please # to comment.