Skip to content

Commit 0ef3653

Browse files
Merge branch '5.4' into 6.4
* 5.4: [DependencyInjection] Fix computing error messages involving service locators [Serializer] Fix unknown types normalization type when know type [ErrorHandler] Fix parsing messages that contain anonymous classes on PHP >= 8.3.3 [Validator] Review Romanian (ro) translations [Console] Fix display of Table on Windows OS [FrameworkBundle] Fix config builder with extensions extended in `build()` [WebProfilerBundle] disable turbo in web profiler toolbar to avoid link prefetching explicitly cast boolean SSL stream options return the unchanged text if preg_replace_callback() fails the 'use_notify' option is on the factory, not on the postgres connection class review translations
2 parents b577992 + a30f316 commit 0ef3653

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Traits/RedisTrait.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,22 @@ public static function createConnection(#[\SensitiveParameter] string $dsn, arra
260260
$extra = [
261261
'stream' => $params['ssl'] ?? null,
262262
];
263+
$booleanStreamOptions = [
264+
'allow_self_signed',
265+
'capture_peer_cert',
266+
'capture_peer_cert_chain',
267+
'disable_compression',
268+
'SNI_enabled',
269+
'verify_peer',
270+
'verify_peer_name',
271+
];
272+
273+
foreach ($extra['stream'] ?? [] as $streamOption => $value) {
274+
if (\in_array($streamOption, $booleanStreamOptions, true) && \is_string($value)) {
275+
$extra['stream'][$streamOption] = filter_var($value, \FILTER_VALIDATE_BOOL);
276+
}
277+
}
278+
263279
if (isset($params['auth'])) {
264280
$extra['auth'] = $params['auth'];
265281
}

0 commit comments

Comments
 (0)