Skip to content

Commit 3955c40

Browse files
minor symfony#52380 [Tests] Add array return type for provider methods (OskarStark)
This PR was merged into the 5.4 branch. Discussion ---------- [Tests] Add `array` return type for provider methods | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | -- | License | MIT Commits ------- f317987 [Tests] Add `array` return type for provider methods
2 parents 8693617 + f317987 commit 3955c40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeToRfc3339TransformerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ public static function allProvider(): array
4343
];
4444
}
4545

46-
public static function transformProvider()
46+
public static function transformProvider(): array
4747
{
4848
return self::allProvider();
4949
}
5050

51-
public static function reverseTransformProvider()
51+
public static function reverseTransformProvider(): array
5252
{
5353
return array_merge(self::allProvider(), [
5454
// format without seconds, as appears in some browsers
@@ -126,7 +126,7 @@ public function testReverseTransformExpectsValidDateString($date)
126126
$transformer->reverseTransform($date);
127127
}
128128

129-
public static function invalidDateStringProvider()
129+
public static function invalidDateStringProvider(): array
130130
{
131131
return [
132132
'invalid month' => ['2010-2010-01'],

0 commit comments

Comments
 (0)