@@ -28,7 +28,7 @@ public function testSerialize(string $expectedValue, DateTimeInterface $dateTime
28
28
}
29
29
30
30
/** @return Generator<int, array{string, DateTimeInterface}> */
31
- public function dateProviderSerialize (): Generator
31
+ public static function dateProviderSerialize (): Generator
32
32
{
33
33
yield ['2018-12-31T01:02:03+00:00 ' , new DateTime ('2018-12-31 01:02:03 ' )];
34
34
yield ['2018-12-31T01:02:03+00:00 ' , new DateTimeImmutable ('2018-12-31 01:02:03 ' )];
@@ -55,7 +55,7 @@ public function testParseValue(string $valueToParse, DateTimeImmutable $expected
55
55
}
56
56
57
57
/** @return Generator<string, array{string, DateTimeImmutable}> */
58
- public function dataProviderParseValue (): Generator
58
+ public static function dataProviderParseValue (): Generator
59
59
{
60
60
// Datetime with hours, minutes and seconds
61
61
yield 'timezone #1 ' => ['2016-11-01T00:00:00-11:00 ' , new DateTimeImmutable ('2016-11-01 11:00:00 ' )];
@@ -93,7 +93,7 @@ public function testParseValueInvalidFormatOrValue(string $value): void
93
93
}
94
94
95
95
/** @return Generator<int, array{string}> */
96
- public function dataProviderParseValueInvalidFormatOrValue (): Generator
96
+ public static function dataProviderParseValueInvalidFormatOrValue (): Generator
97
97
{
98
98
yield ['2021-02-29T00:00:00Z ' ];
99
99
yield ['1900-02-29T00:00:00Z ' ];
0 commit comments