Skip to content

Commit 5c739b7

Browse files
committed
minor symfony#58324 Make more data providers static (derrabus)
This PR was merged into the 7.1 branch. Discussion ---------- Make more data providers static | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | N/A | License | MIT Follows symfony#58323. This PR fixes all data providers that did not exist in 6.4 yet. Commits ------- 6327224 Make more data providers static
2 parents 58b376e + 6327224 commit 5c739b7

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/Symfony/Component/Process/Tests/ProcessTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function testInvalidCommand(Process $process)
7676
$this->assertSame('\\' === \DIRECTORY_SEPARATOR ? 1 : 127, $process->run());
7777
}
7878

79-
public function invalidProcessProvider()
79+
public static function invalidProcessProvider(): array
8080
{
8181
return [
8282
[new Process(['invalid'])],

src/Symfony/Component/Serializer/Tests/Normalizer/AbstractObjectNormalizerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ public function testDenormalizeBooleanTypeWithFilterBool(array $data, ?bool $exp
12111211
$this->assertSame($expectedFoo, $dummy->foo);
12121212
}
12131213

1214-
public function provideDenormalizeWithFilterBoolData(): array
1214+
public static function provideDenormalizeWithFilterBoolData(): array
12151215
{
12161216
return [
12171217
[['foo' => 'true'], true],

src/Symfony/Component/TypeInfo/Tests/TypeResolver/ReflectionTypeResolverTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testResolve(Type $expectedType, \ReflectionType $reflection, ?Ty
4444
/**
4545
* @return iterable<array{0: Type, 1: \ReflectionType, 2?: TypeContext}>
4646
*/
47-
public function resolveDataProvider(): iterable
47+
public static function resolveDataProvider(): iterable
4848
{
4949
$typeContext = (new TypeContextFactory())->createFromClassName(ReflectionExtractableDummy::class);
5050
$reflection = new \ReflectionClass(ReflectionExtractableDummy::class);
@@ -89,7 +89,7 @@ public function testCannotResolveClassKeywordsWithoutTypeContext(\ReflectionType
8989
/**
9090
* @return iterable<array{0: \ReflectionType}>
9191
*/
92-
public function classKeywordsTypesDataProvider(): iterable
92+
public static function classKeywordsTypesDataProvider(): iterable
9393
{
9494
$reflection = new \ReflectionClass(ReflectionExtractableDummy::class);
9595

src/Symfony/Component/TypeInfo/Tests/TypeResolver/StringTypeResolverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function __toString(): string
6060
/**
6161
* @return iterable<array{0: Type, 1: string, 2?: TypeContext}>
6262
*/
63-
public function resolveDataProvider(): iterable
63+
public static function resolveDataProvider(): iterable
6464
{
6565
$typeContextFactory = new TypeContextFactory(new StringTypeResolver());
6666

0 commit comments

Comments
 (0)