We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07eadd2 commit d97d217Copy full SHA for d97d217
1 file changed
system/Session/Handlers/RedisHandler.php
@@ -98,7 +98,7 @@ protected function setSavePath(): void
98
'port' => empty($matches[2]) ? self::REDIS_DEFAULT_PORT : $matches[2],
99
'password' => preg_match('#auth=([^\s&]+)#', $matches[3], $match) ? $match[1] : null,
100
'database' => preg_match('#database=(\d+)#', $matches[3], $match) ? (int) $match[1] : 0,
101
- 'timeout' => preg_match('#timeout=(\d+\.\d+|\d+)#', $matches[3], $match) ? (float) $match[1] : 0,
+ 'timeout' => preg_match('#timeout=(\d+\.\d+|\d+)#', $matches[3], $match) ? (float) $match[1] : 0.0,
102
];
103
104
preg_match('#prefix=([^\s&]+)#', $matches[3], $match) && $this->keyPrefix = $match[1];
0 commit comments