Skip to content

Commit 4e154e9

Browse files
Fix merge
1 parent e33f4ae commit 4e154e9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Tests/Authorization/ExpressionLanguageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testIsAuthenticated($token, $expression, $result)
4444
$this->assertEquals($result, $expressionLanguage->evaluate($expression, $context));
4545
}
4646

47-
public function provider()
47+
public static function provider()
4848
{
4949
$roles = ['ROLE_USER', 'ROLE_ADMIN'];
5050
$user = new InMemoryUser('username', 'password', $roles);

Tests/Authorization/Voter/AuthenticatedVoterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function testVote($authenticated, $attributes, $expected)
3333
$this->assertSame($expected, $voter->vote($this->getToken($authenticated), null, $attributes));
3434
}
3535

36-
public function getVoteTests()
36+
public static function getVoteTests()
3737
{
3838
return [
3939
['fully', [], VoterInterface::ACCESS_ABSTAIN],
@@ -63,7 +63,7 @@ public function testSupportsAttribute(string $attribute, bool $expected)
6363
$this->assertSame($expected, $voter->supportsAttribute($attribute));
6464
}
6565

66-
public function provideAttributes()
66+
public static function provideAttributes()
6767
{
6868
yield [AuthenticatedVoter::IS_AUTHENTICATED_FULLY, true];
6969
yield [AuthenticatedVoter::IS_AUTHENTICATED_REMEMBERED, true];

Tests/SecurityTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function testGetUser($userInToken, $expectedUser)
6161
$this->assertSame($expectedUser, $security->getUser());
6262
}
6363

64-
public function getUserTests()
64+
public static function getUserTests()
6565
{
6666
yield [null, null];
6767

0 commit comments

Comments
 (0)