Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions classes/lock/redis_lock_factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ class redis_lock_factory implements lock_factory {

/**
* @param string $type The type this lock is used for (e.g. cron, cache).
* @param \Redis|null $redis An instance of the PHPRedis extension class.
* @param ?\Redis $redis An instance of the PHPRedis extension class.
* @param boolean|null $logging Should verbose logs be emitted.
* @throws \core\exception\coding_exception
*/
public function __construct($type, \Redis $redis = null, $logging = null) {
public function __construct($type, ?\Redis $redis = null, $logging = null) {
global $CFG;

$this->type = $type;
Expand Down