Skip to content

Commit 15574cf

Browse files
OskarStarknicolas-grekas
authored andcommitted
[Tests] Streamline
1 parent ceadb4e commit 15574cf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Tests/Normalizer/DateIntervalNormalizerTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ protected function setUp(): void
3131
$this->normalizer = new DateIntervalNormalizer();
3232
}
3333

34-
public static function dataProviderISO()
34+
public static function dataProviderISO(): array
3535
{
36-
$data = [
36+
return [
3737
['P%YY%MM%DDT%HH%IM%SS', 'P00Y00M00DT00H00M00S', 'PT0S'],
3838
['P%yY%mM%dDT%hH%iM%sS', 'P0Y0M0DT0H0M0S', 'PT0S'],
3939
['P%yY%mM%dDT%hH%iM%sS', 'P10Y2M3DT16H5M6S', 'P10Y2M3DT16H5M6S'],
@@ -46,8 +46,6 @@ public static function dataProviderISO()
4646
['%rP%yY%mM%dD', '-P10Y2M3D', '-P10Y2M3DT0H'],
4747
['%rP%yY%mM%dD', 'P10Y2M3D', 'P10Y2M3DT0H'],
4848
];
49-
50-
return $data;
5149
}
5250

5351
public function testSupportsNormalization()

0 commit comments

Comments
 (0)