@@ -256,7 +256,7 @@ public function testInitializeCallsSentinelPathWhenSentinelsConfigured(): void
256256 $ this ->markTestSkipped ('redis extension not loaded. ' );
257257 }
258258
259- $ cacheConfig = new Cache ();
259+ $ cacheConfig = new Cache ();
260260 $ cacheConfig ->redis ['sentinels ' ] = ['tcp://10.0.0.1:26379 ' , 'tcp://10.0.0.2:26379 ' ];
261261 $ cacheConfig ->redis ['service ' ] = 'mymaster ' ;
262262
@@ -267,10 +267,8 @@ public function testInitializeCallsSentinelPathWhenSentinelsConfigured(): void
267267
268268 $ handler ->expects ($ this ->once ())
269269 ->method ('initializeSentinel ' )
270- ->with ($ this ->callback (function (array $ config ): bool {
271- return $ config ['sentinels ' ] === ['tcp://10.0.0.1:26379 ' , 'tcp://10.0.0.2:26379 ' ]
272- && $ config ['service ' ] === 'mymaster ' ;
273- }));
270+ ->with ($ this ->callback (static fn (array $ config ): bool => $ config ['sentinels ' ] === ['tcp://10.0.0.1:26379 ' , 'tcp://10.0.0.2:26379 ' ]
271+ && $ config ['service ' ] === 'mymaster ' ));
274272
275273 $ handler ->initialize ();
276274 }
@@ -297,7 +295,7 @@ public function testReconnectInSentinelModeReturnsFalse(): void
297295 $ this ->markTestSkipped ('redis extension not loaded. ' );
298296 }
299297
300- $ cacheConfig = new Cache ();
298+ $ cacheConfig = new Cache ();
301299 $ cacheConfig ->redis ['sentinels ' ] = ['tcp://127.0.0.1:26380 ' ];
302300 $ cacheConfig ->redis ['service ' ] = 'mymaster ' ;
303301 $ cacheConfig ->redis ['timeout ' ] = 1 ;
@@ -309,7 +307,7 @@ public function testReconnectInSentinelModeReturnsFalse(): void
309307
310308 public function testInitializeSentinelSuccessfullyDiscoversAndConnectsToMaster (): void
311309 {
312- $ cacheConfig = new Cache ();
310+ $ cacheConfig = new Cache ();
313311 $ cacheConfig ->redis ['sentinels ' ] = ['tcp://127.0.0.1:26379 ' ];
314312 $ cacheConfig ->redis ['service ' ] = 'mymaster ' ;
315313
0 commit comments