Skip to content

Commit 343a93a

Browse files
committed
[BCB] LevelsTestCase::dataTopics() data provider made static
1 parent c5c03dd commit 343a93a

8 files changed

+8
-7
lines changed

UPGRADING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,3 +283,4 @@ Instead of `PHPStanTestCase::createBroker()`, call `PHPStanTestCase::createRefle
283283
* Remove `__set_state()` on objects that should not be serialized in cache
284284
* Parameter `$selfClass` of [`TypehintHelper::decideTypeFromReflection()`](https://apiref.phpstan.org/2.0.x/PHPStan.Type.TypehintHelper.html#_decideTypeFromReflection) no longer accepts string
285285
* Remove `fixerTmpDir` config parameter, use `pro.tmpDir` instead
286+
* `LevelsTestCase::dataTopics()` data provider made static

src/Testing/LevelsTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ abstract class LevelsTestCase extends TestCase
3030
/**
3131
* @return array<array<string>>
3232
*/
33-
abstract public function dataTopics(): array;
33+
abstract public static function dataTopics(): array;
3434

3535
abstract public function getDataPath(): string;
3636

tests/PHPStan/Generics/GenericsIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class GenericsIntegrationTest extends LevelsTestCase
1111
{
1212

13-
public function dataTopics(): array
13+
public static function dataTopics(): array
1414
{
1515
return [
1616
['functions'],

tests/PHPStan/Levels/InferPrivatePropertyTypeFromConstructorIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class InferPrivatePropertyTypeFromConstructorIntegrationTest extends LevelsTestCase
1111
{
1212

13-
public function dataTopics(): array
13+
public static function dataTopics(): array
1414
{
1515
return [
1616
['inferPropertyType'],

tests/PHPStan/Levels/LevelsIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class LevelsIntegrationTest extends LevelsTestCase
1212
{
1313

14-
public function dataTopics(): array
14+
public static function dataTopics(): array
1515
{
1616
$topics = [
1717
['returnTypes'],

tests/PHPStan/Levels/NamedArgumentsIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class NamedArgumentsIntegrationTest extends LevelsTestCase
1111
{
1212

13-
public function dataTopics(): array
13+
public static function dataTopics(): array
1414
{
1515
return [
1616
['namedArguments'],

tests/PHPStan/Levels/StubValidatorIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class StubValidatorIntegrationTest extends LevelsTestCase
1111
{
1212

13-
public function dataTopics(): array
13+
public static function dataTopics(): array
1414
{
1515
return [
1616
['stubValidator'],

tests/PHPStan/Levels/StubsIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class StubsIntegrationTest extends LevelsTestCase
1111
{
1212

13-
public function dataTopics(): array
13+
public static function dataTopics(): array
1414
{
1515
require_once __DIR__ . '/data/stubs-functions.php';
1616

0 commit comments

Comments
 (0)