File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
HttpFoundation/Session/Storage/Handler
Messenger/Bridge/Redis/Transport Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -408,7 +408,7 @@ protected function doDelete(array $ids)
408
408
409
409
if ($ unlink ) {
410
410
try {
411
- $ this ->redis ->unlink ($ ids );
411
+ $ unlink = false !== $ this ->redis ->unlink ($ ids );
412
412
413
413
return true ;
414
414
} catch (\Throwable $ e ) {
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ protected function doDestroy(string $sessionId): bool
93
93
94
94
if ($ unlink ) {
95
95
try {
96
- $ this ->redis ->unlink ($ this ->prefix .$ sessionId );
96
+ $ unlink = false !== $ this ->redis ->unlink ($ this ->prefix .$ sessionId );
97
97
98
98
return true ;
99
99
} catch (\Throwable $ e ) {
Original file line number Diff line number Diff line change @@ -485,17 +485,15 @@ public function cleanup(): void
485
485
486
486
if ($ unlink ) {
487
487
try {
488
- $ this ->connection ->unlink ($ this ->stream );
489
- $ this ->connection ->unlink ($ this ->queue );
488
+ $ unlink = false !== $ this ->connection ->unlink ($ this ->stream , $ this ->queue );
490
489
491
490
return ;
492
491
} catch (\Throwable $ e ) {
493
492
$ unlink = false ;
494
493
}
495
494
}
496
495
497
- $ this ->connection ->del ($ this ->stream );
498
- $ this ->connection ->del ($ this ->queue );
496
+ $ this ->connection ->del ($ this ->stream , $ this ->queue );
499
497
}
500
498
}
501
499
class_alias (Connection::class, \Symfony \Component \Messenger \Transport \RedisExt \Connection::class);
You can’t perform that action at this time.
0 commit comments