@@ -260,6 +260,21 @@ public static function fromDsn(#[\SensitiveParameter] string $dsn, array $option
260260 },$ paramss ,$ dsns );
261261 }
262262
263+ if (isset ($ options ['sentinel ' ]) &&isset ($ options ['redis_sentinel ' ])) {
264+ throw new InvalidArgumentException ('Cannot use both "sentinel" and "redis_sentinel" at the same time. ' );
265+ }
266+
267+ if (isset ($ options ['sentinel ' ]) &&isset ($ options ['sentinel_master ' ])) {
268+ throw new InvalidArgumentException ('Cannot use both "sentinel" and "sentinel_master" at the same time. ' );
269+ }
270+
271+ if (isset ($ options ['redis_sentinel ' ]) &&isset ($ options ['sentinel_master ' ])) {
272+ throw new InvalidArgumentException ('Cannot use both "redis_sentinel" and "sentinel_master" at the same time. ' );
273+ }
274+
275+ $ options ['sentinel ' ] ??=$ options ['redis_sentinel ' ] ??$ options ['sentinel_master ' ] ??null ;
276+ unset($ options ['redis_sentinel ' ],$ options ['sentinel_master ' ]);
277+
263278if ($ invalidOptions =array_diff (array_keys ($ options ),array_keys (self ::DEFAULT_OPTIONS ), ['host ' ,'port ' ])) {
264279throw new LogicException (\sprintf ('Invalid option(s) "%s" passed to the Redis Messenger transport. ' ,implode ('", " ' ,$ invalidOptions )));
265280 }