Skip to content

Commit 5e7ea57

Browse files
committed
#27121 update docblock and cs fixes
1 parent cd5c282 commit 5e7ea57

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Symfony/Component/Security/Http/Firewall/AccessListener.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ class AccessListener implements ListenerInterface
3030
private $tokenStorage;
3131

3232
/**
33-
* @deprecated since Symfony 4.2
33+
* @deprecated since Symfony 4.3
3434
*/
3535
private $accessDecisionManager;
3636
private $map;
3737

3838
/**
39-
* @deprecated since Symfony 4.2
39+
* @deprecated since Symfony 4.3
4040
*/
4141
private $authManager;
4242
private $authorizationChecker;

src/Symfony/Component/Security/Http/Tests/Firewall/AccessListenerTest.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function testHandleWhenTheAccessDecisionManagerDecidesToRefuseAccess()
109109
$request = $this->getMockBuilder('Symfony\Component\HttpFoundation\Request')->disableOriginalConstructor()->disableOriginalClone()->getMock();
110110
$token = $this->getMockBuilder('Symfony\Component\Security\Core\Authentication\Token\TokenInterface')->getMock();
111111
$event = $this->getMockBuilder('Symfony\Component\HttpKernel\Event\GetResponseEvent')->disableOriginalConstructor()->getMock();
112-
$attributes = array('foo' => 'bar');
112+
$attributes = ['foo' => 'bar'];
113113

114114
$tokenStorage
115115
->expects($this->any())
@@ -121,7 +121,7 @@ public function testHandleWhenTheAccessDecisionManagerDecidesToRefuseAccess()
121121
->expects($this->any())
122122
->method('getPatterns')
123123
->with($this->equalTo($request))
124-
->will($this->returnValue(array($attributes, null)))
124+
->will($this->returnValue([$attributes, null]))
125125
;
126126

127127
$authorizationChecker
@@ -290,7 +290,7 @@ public function testHandleWhenThereIsNoAccessMapEntryMatchingTheRequest()
290290
->expects($this->any())
291291
->method('getPatterns')
292292
->with($this->equalTo($request))
293-
->will($this->returnValue(array(null, null)))
293+
->will($this->returnValue([null, null]))
294294
;
295295

296296
$authorizationChecker
@@ -325,7 +325,7 @@ public function testOldHandleWhenTheSecurityTokenStorageHasNoToken()
325325
->expects($this->any())
326326
->method('getPatterns')
327327
->with($this->equalTo($request))
328-
->will($this->returnValue(array(array('foo' => 'bar'), null)))
328+
->will($this->returnValue([['foo' => 'bar'], null]))
329329
;
330330

331331
$listener = new AccessListener(

0 commit comments

Comments
 (0)