Skip to content

Commit f317987

Browse files
committed
[Tests] Add array return type for provider methods
1 parent b26fdd0 commit f317987

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
@@ -49,12 +49,12 @@ public static function allProvider(): array
4949
];
5050
}
5151

52-
public static function transformProvider()
52+
public static function transformProvider(): array
5353
{
5454
return self::allProvider();
5555
}
5656

57-
public static function reverseTransformProvider()
57+
public static function reverseTransformProvider(): array
5858
{
5959
return array_merge(self::allProvider(), [
6060
// format without seconds, as appears in some browsers
@@ -132,7 +132,7 @@ public function testReverseTransformExpectsValidDateString($date)
132132
$transformer->reverseTransform($date);
133133
}
134134

135-
public static function invalidDateStringProvider()
135+
public static function invalidDateStringProvider(): array
136136
{
137137
return [
138138
'invalid month' => ['2010-2010-01'],

0 commit comments

Comments
 (0)