Skip to content

Commit 5dd5509

Browse files
Merge branch '5.4' into 6.2
* 5.4: [Translation][Mailer] Convert `$this` calls to static ones in data providers [BC Break] Make data providers for abstract test cases static use TestCase suffix for abstract tests in Tests directories Fix Request locale property doc types Bump absolute lowest dep to 4.4
2 parents 64a582e + aeb3330 commit 5dd5509

File tree

6 files changed

+10
-5
lines changed

6 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ CHANGELOG
1818
or `LegacyPasswordAuthenticatedUserInterface` instead
1919
* `AccessDecisionManager` requires the strategy to be passed as in instance of `AccessDecisionStrategyInterface`
2020

21+
5.4.21
22+
------
23+
24+
* [BC BREAK] `AccessDecisionStrategyTestCase::provideStrategyTests()` is now static
25+
2126
5.4
2227
---
2328

Test/AccessDecisionStrategyTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ final public function testDecide(AccessDecisionStrategyInterface $strategy, arra
4040
/**
4141
* @return iterable<array{AccessDecisionStrategyInterface, VoterInterface[], bool}>
4242
*/
43-
abstract public function provideStrategyTests(): iterable;
43+
abstract public static function provideStrategyTests(): iterable;
4444

4545
/**
4646
* @return VoterInterface[]

Tests/Authorization/Strategy/AffirmativeStrategyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class AffirmativeStrategyTest extends AccessDecisionStrategyTestCase
1818
{
19-
public function provideStrategyTests(): iterable
19+
public static function provideStrategyTests(): iterable
2020
{
2121
$strategy = new AffirmativeStrategy();
2222

Tests/Authorization/Strategy/ConsensusStrategyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class ConsensusStrategyTest extends AccessDecisionStrategyTestCase
1818
{
19-
public function provideStrategyTests(): iterable
19+
public static function provideStrategyTests(): iterable
2020
{
2121
$strategy = new ConsensusStrategy();
2222

Tests/Authorization/Strategy/PriorityStrategyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
class PriorityStrategyTest extends AccessDecisionStrategyTestCase
1919
{
20-
public function provideStrategyTests(): iterable
20+
public static function provideStrategyTests(): iterable
2121
{
2222
$strategy = new PriorityStrategy();
2323

Tests/Authorization/Strategy/UnanimousStrategyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class UnanimousStrategyTest extends AccessDecisionStrategyTestCase
1818
{
19-
public function provideStrategyTests(): iterable
19+
public static function provideStrategyTests(): iterable
2020
{
2121
$strategy = new UnanimousStrategy();
2222

0 commit comments

Comments
 (0)