Skip to content

Commit

Permalink
minor #52380 [Tests] Add array return type for provider methods (Os…
Browse files Browse the repository at this point in the history
…karStark)

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
-------

f3179876ac [Tests] Add `array` return type for provider methods
  • Loading branch information
nicolas-grekas committed Oct 31, 2023
2 parents 2b0fde0 + 7465099 commit 015527f
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 015527f

Please sign in to comment.