@@ -109,7 +109,7 @@ public function testHandleWhenTheAccessDecisionManagerDecidesToRefuseAccess()
109
109
$ request = $ this ->getMockBuilder ('Symfony\Component\HttpFoundation\Request ' )->disableOriginalConstructor ()->disableOriginalClone ()->getMock ();
110
110
$ token = $ this ->getMockBuilder ('Symfony\Component\Security\Core\Authentication\Token\TokenInterface ' )->getMock ();
111
111
$ event = $ this ->getMockBuilder ('Symfony\Component\HttpKernel\Event\GetResponseEvent ' )->disableOriginalConstructor ()->getMock ();
112
- $ attributes = array ( 'foo ' => 'bar ' ) ;
112
+ $ attributes = [ 'foo ' => 'bar ' ] ;
113
113
114
114
$ tokenStorage
115
115
->expects ($ this ->any ())
@@ -121,7 +121,7 @@ public function testHandleWhenTheAccessDecisionManagerDecidesToRefuseAccess()
121
121
->expects ($ this ->any ())
122
122
->method ('getPatterns ' )
123
123
->with ($ this ->equalTo ($ request ))
124
- ->will ($ this ->returnValue (array ( $ attributes , null ) ))
124
+ ->will ($ this ->returnValue ([ $ attributes , null ] ))
125
125
;
126
126
127
127
$ authorizationChecker
@@ -290,7 +290,7 @@ public function testHandleWhenThereIsNoAccessMapEntryMatchingTheRequest()
290
290
->expects ($ this ->any ())
291
291
->method ('getPatterns ' )
292
292
->with ($ this ->equalTo ($ request ))
293
- ->will ($ this ->returnValue (array ( null , null ) ))
293
+ ->will ($ this ->returnValue ([ null , null ] ))
294
294
;
295
295
296
296
$ authorizationChecker
@@ -325,7 +325,7 @@ public function testOldHandleWhenTheSecurityTokenStorageHasNoToken()
325
325
->expects ($ this ->any ())
326
326
->method ('getPatterns ' )
327
327
->with ($ this ->equalTo ($ request ))
328
- ->will ($ this ->returnValue (array ( array ( 'foo ' => 'bar ' ) , null ) ))
328
+ ->will ($ this ->returnValue ([[ 'foo ' => 'bar ' ] , null ] ))
329
329
;
330
330
331
331
$ listener = new AccessListener (
0 commit comments