@@ -28,7 +28,7 @@ class LogoutListenerTest extends TestCase
28
28
public function testHandleUnmatchedPath ()
29
29
{
30
30
$ dispatcher = $ this ->getEventDispatcher ();
31
- list ( $ listener , , $ httpUtils , $ options) = $ this ->getListener ($ dispatcher );
31
+ [ $ listener , , $ httpUtils , $ options] = $ this ->getListener ($ dispatcher );
32
32
33
33
[$ event , $ request ] = $ this ->getGetResponseEvent ();
34
34
@@ -52,7 +52,7 @@ public function testHandleMatchedPathWithCsrfValidation()
52
52
$ tokenManager = $ this ->getTokenManager ();
53
53
$ dispatcher = $ this ->getEventDispatcher ();
54
54
55
- list ( $ listener , $ tokenStorage , $ httpUtils , $ options) = $ this ->getListener ($ dispatcher , $ tokenManager );
55
+ [ $ listener , $ tokenStorage , $ httpUtils , $ options] = $ this ->getListener ($ dispatcher , $ tokenManager );
56
56
57
57
[$ event , $ request ] = $ this ->getGetResponseEvent ();
58
58
@@ -90,7 +90,7 @@ public function testHandleMatchedPathWithCsrfValidation()
90
90
public function testHandleMatchedPathWithoutCsrfValidation ()
91
91
{
92
92
$ dispatcher = $ this ->getEventDispatcher ();
93
- list ( $ listener , $ tokenStorage , $ httpUtils , $ options) = $ this ->getListener ($ dispatcher );
93
+ [ $ listener , $ tokenStorage , $ httpUtils , $ options] = $ this ->getListener ($ dispatcher );
94
94
95
95
[$ event , $ request ] = $ this ->getGetResponseEvent ();
96
96
@@ -123,7 +123,7 @@ public function testNoResponseSet()
123
123
{
124
124
$ this ->expectException ('RuntimeException ' );
125
125
126
- list ( $ listener , , $ httpUtils , $ options) = $ this ->getListener ();
126
+ [ $ listener , , $ httpUtils , $ options] = $ this ->getListener ();
127
127
128
128
[$ event , $ request ] = $ this ->getGetResponseEvent ();
129
129
@@ -168,12 +168,12 @@ public function testLegacyLogoutHandlers()
168
168
$ this ->expectDeprecation ('Since symfony/security-http 5.1: Calling "%s::addHandler" is deprecated, register a listener on the "%s" event instead. ' );
169
169
170
170
$ logoutSuccessHandler = $ this ->createMock (LogoutSuccessHandlerInterface::class);
171
- list ( $ listener , $ tokenStorage , $ httpUtils , $ options) = $ this ->getListener ($ logoutSuccessHandler );
171
+ [ $ listener , $ tokenStorage , $ httpUtils , $ options] = $ this ->getListener ($ logoutSuccessHandler );
172
172
173
173
$ token = $ this ->getToken ();
174
174
$ tokenStorage ->expects ($ this ->any ())->method ('getToken ' )->willReturn ($ token );
175
175
176
- list ( $ event , $ request) = $ this ->getGetResponseEvent ();
176
+ [ $ event , $ request] = $ this ->getGetResponseEvent ();
177
177
178
178
$ httpUtils ->expects ($ this ->once ())
179
179
->method ('checkRequestPath ' )
0 commit comments