Skip to content

Commit 6c271b3

Browse files
Merge branch '4.4'
* 4.4: bump phpunit-bridge cache-id removed unneeded phpdocs Use assertStringContainsString when needed Use assert assertContainsEquals when needed Use assertEqualsWithDelta when required
2 parents 8286932 + c470096 commit 6c271b3

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

Authentication/Provider/RememberMeAuthenticationProvider.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ class RememberMeAuthenticationProvider implements AuthenticationProviderInterfac
2424
private $providerKey;
2525

2626
/**
27-
* @param UserCheckerInterface $userChecker An UserCheckerInterface interface
28-
* @param string $secret A secret
29-
* @param string $providerKey A provider secret
27+
* @param string $secret A secret
28+
* @param string $providerKey A provider secret
3029
*/
3130
public function __construct(UserCheckerInterface $userChecker, string $secret, string $providerKey)
3231
{

Authorization/AccessDecisionManagerInterface.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ interface AccessDecisionManagerInterface
2323
/**
2424
* Decides whether the access is possible or not.
2525
*
26-
* @param TokenInterface $token A TokenInterface instance
27-
* @param array $attributes An array of attributes associated with the method being invoked
28-
* @param object $object The object to secure
26+
* @param array $attributes An array of attributes associated with the method being invoked
27+
* @param object $object The object to secure
2928
*
3029
* @return bool true if the access is granted, false otherwise
3130
*/

Authorization/Voter/VoterInterface.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ interface VoterInterface
3030
* This method must return one of the following constants:
3131
* ACCESS_GRANTED, ACCESS_DENIED, or ACCESS_ABSTAIN.
3232
*
33-
* @param TokenInterface $token A TokenInterface instance
34-
* @param mixed $subject The subject to secure
35-
* @param array $attributes An array of attributes associated with the method being invoked
33+
* @param mixed $subject The subject to secure
34+
* @param array $attributes An array of attributes associated with the method being invoked
3635
*
3736
* @return int either ACCESS_GRANTED, ACCESS_ABSTAIN, or ACCESS_DENIED
3837
*/

Tests/Authentication/Provider/UserAuthenticationProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function testAuthenticatePreservesOriginalToken()
195195
$this->assertInstanceOf(SwitchUserToken::class, $authToken);
196196
$this->assertSame($originalToken, $authToken->getOriginalToken());
197197
$this->assertSame($user, $authToken->getUser());
198-
$this->assertContains('ROLE_FOO', $authToken->getRoleNames(), '', false, false);
198+
$this->assertContains('ROLE_FOO', $authToken->getRoleNames());
199199
$this->assertEquals('foo', $authToken->getCredentials());
200200
$this->assertEquals(['foo' => 'bar'], $authToken->getAttributes(), '->authenticate() copies token attributes');
201201
}

0 commit comments

Comments
 (0)