Skip to content

Commit 052d946

Browse files
OskarStarknicolas-grekas
authored andcommitted
[BC Break] Make data providers for abstract test cases static
1 parent 0287287 commit 052d946

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
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
5.4.21
5+
------
6+
7+
* [BC BREAK] `AccessDecisionStrategyTestCase::provideStrategyTests()` is now static
8+
49
5.4
510
---
611

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)