Skip to content

Commit

Permalink
Merge branch '5.4' into 6.3
Browse files Browse the repository at this point in the history
* 5.4:
  do not install FrameworkBundle 6.4
  [Tests] Add `array` return type for provider methods
  • Loading branch information
nicolas-grekas committed Oct 31, 2023
2 parents 4c9ac56 + 015527f commit 0ec64ed
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ public static function allProvider(): array
];
}

public static function transformProvider()
public static function transformProvider(): array
{
return self::allProvider();
}

public static function reverseTransformProvider()
public static function reverseTransformProvider(): array
{
return array_merge(self::allProvider(), [
// format without seconds, as appears in some browsers
Expand Down Expand Up @@ -126,7 +126,7 @@ public function testReverseTransformExpectsValidDateString($date)
$transformer->reverseTransform($date);
}

public static function invalidDateStringProvider()
public static function invalidDateStringProvider(): array
{
return [
'invalid month' => ['2010-2010-01'],
Expand Down

0 comments on commit 0ec64ed

Please sign in to comment.