@@ -389,10 +389,8 @@ public static function createConnection(#[\SensitiveParameter] string $dsn, arra
389389
390390 foreach ($ context as $ name => $ value ) {
391391 match ($ name ) {
392- 'use-cache ' , 'client-tracking ' , 'throw-on-error ' , 'client-invalidations ' , 'reply-literal ' , 'persistent ' ,
393- => $ context [$ name ] = filter_var ($ value , \FILTER_VALIDATE_BOOLEAN ),
394- 'max-retries ' , 'serializer ' , 'compression ' , 'compression-level ' ,
395- => $ context [$ name ] = filter_var ($ value , \FILTER_VALIDATE_INT ),
392+ 'use-cache ' , 'client-tracking ' , 'throw-on-error ' , 'client-invalidations ' , 'reply-literal ' , 'persistent ' , => $ context [$ name ] = filter_var ($ value , \FILTER_VALIDATE_BOOLEAN ),
393+ 'max-retries ' , 'serializer ' , 'compression ' , 'compression-level ' , => $ context [$ name ] = filter_var ($ value , \FILTER_VALIDATE_INT ),
396394 default => null ,
397395 };
398396 }
@@ -574,7 +572,7 @@ protected function doClear(string $namespace): bool
574572
575573 if ($ this ->redis instanceof RelayCluster) {
576574 $ prefix = Relay::SCAN_PREFIX & $ this ->redis ->getOption (Relay::OPT_SCAN ) ? '' : $ this ->redis ->getOption (Relay::OPT_PREFIX );
577- $ prefixLen = \strlen ($ prefix );
575+ $ prefixLen = \strlen ($ prefix ?? '' );
578576 $ pattern = $ prefix .$ namespace .'* ' ;
579577 foreach ($ this ->redis ->_masters () as $ ipAndPort ) {
580578 $ address = implode (': ' , $ ipAndPort );
@@ -815,8 +813,7 @@ private static function filterSslOptions(array $options): array
815813 {
816814 foreach ($ options as $ name => $ value ) {
817815 match ($ name ) {
818- 'allow_self_signed ' , 'capture_peer_cert ' , 'capture_peer_cert_chain ' , 'disable_compression ' , 'SNI_enabled ' , 'verify_peer ' , 'verify_peer_name ' ,
819- => $ options [$ name ] = filter_var ($ value , \FILTER_VALIDATE_BOOLEAN ),
816+ 'allow_self_signed ' , 'capture_peer_cert ' , 'capture_peer_cert_chain ' , 'disable_compression ' , 'SNI_enabled ' , 'verify_peer ' , 'verify_peer_name ' , => $ options [$ name ] = filter_var ($ value , \FILTER_VALIDATE_BOOLEAN ),
820817 default => null ,
821818 };
822819 }
0 commit comments