@@ -28,7 +28,7 @@ class LogoutListenerTest extends TestCase
2828 public function testHandleUnmatchedPath ()
2929 {
3030 $ dispatcher = $ this ->getEventDispatcher ();
31- list ( $ listener , , $ httpUtils , $ options) = $ this ->getListener ($ dispatcher );
31+ [ $ listener , , $ httpUtils , $ options] = $ this ->getListener ($ dispatcher );
3232
3333 [$ event , $ request ] = $ this ->getGetResponseEvent ();
3434
@@ -52,7 +52,7 @@ public function testHandleMatchedPathWithCsrfValidation()
5252 $ tokenManager = $ this ->getTokenManager ();
5353 $ dispatcher = $ this ->getEventDispatcher ();
5454
55- list ( $ listener , $ tokenStorage , $ httpUtils , $ options) = $ this ->getListener ($ dispatcher , $ tokenManager );
55+ [ $ listener , $ tokenStorage , $ httpUtils , $ options] = $ this ->getListener ($ dispatcher , $ tokenManager );
5656
5757 [$ event , $ request ] = $ this ->getGetResponseEvent ();
5858
@@ -90,7 +90,7 @@ public function testHandleMatchedPathWithCsrfValidation()
9090 public function testHandleMatchedPathWithoutCsrfValidation ()
9191 {
9292 $ dispatcher = $ this ->getEventDispatcher ();
93- list ( $ listener , $ tokenStorage , $ httpUtils , $ options) = $ this ->getListener ($ dispatcher );
93+ [ $ listener , $ tokenStorage , $ httpUtils , $ options] = $ this ->getListener ($ dispatcher );
9494
9595 [$ event , $ request ] = $ this ->getGetResponseEvent ();
9696
@@ -123,7 +123,7 @@ public function testNoResponseSet()
123123 {
124124 $ this ->expectException ('RuntimeException ' );
125125
126- list ( $ listener , , $ httpUtils , $ options) = $ this ->getListener ();
126+ [ $ listener , , $ httpUtils , $ options] = $ this ->getListener ();
127127
128128 [$ event , $ request ] = $ this ->getGetResponseEvent ();
129129
@@ -168,12 +168,12 @@ public function testLegacyLogoutHandlers()
168168 $ this ->expectDeprecation ('Since symfony/security-http 5.1: Calling "%s::addHandler" is deprecated, register a listener on the "%s" event instead. ' );
169169
170170 $ logoutSuccessHandler = $ this ->createMock (LogoutSuccessHandlerInterface::class);
171- list ( $ listener , $ tokenStorage , $ httpUtils , $ options) = $ this ->getListener ($ logoutSuccessHandler );
171+ [ $ listener , $ tokenStorage , $ httpUtils , $ options] = $ this ->getListener ($ logoutSuccessHandler );
172172
173173 $ token = $ this ->getToken ();
174174 $ tokenStorage ->expects ($ this ->any ())->method ('getToken ' )->willReturn ($ token );
175175
176- list ( $ event , $ request) = $ this ->getGetResponseEvent ();
176+ [ $ event , $ request] = $ this ->getGetResponseEvent ();
177177
178178 $ httpUtils ->expects ($ this ->once ())
179179 ->method ('checkRequestPath ' )
0 commit comments