From 0fd6f5a31fb4618e243a05f3e31dbad5e6ccf0dd Mon Sep 17 00:00:00 2001 From: Philipp Memmel Date: Thu, 27 Nov 2025 17:17:06 +0100 Subject: [PATCH] MBS-10477: Fix implicitely nullables for PHP 8.4 --- classes/lock/redis_lock_factory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/lock/redis_lock_factory.php b/classes/lock/redis_lock_factory.php index fcee5e5..e990036 100644 --- a/classes/lock/redis_lock_factory.php +++ b/classes/lock/redis_lock_factory.php @@ -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;