From 746509907a1588f659ebe37cec67a8f156c378a0 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Tue, 31 Oct 2023 10:19:53 +0100 Subject: [PATCH] [Tests] Add `array` return type for provider methods --- .../DataTransformer/DateTimeToRfc3339TransformerTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/Extension/Core/DataTransformer/DateTimeToRfc3339TransformerTest.php b/Tests/Extension/Core/DataTransformer/DateTimeToRfc3339TransformerTest.php index 1e9534fc7..11be7d4e7 100644 --- a/Tests/Extension/Core/DataTransformer/DateTimeToRfc3339TransformerTest.php +++ b/Tests/Extension/Core/DataTransformer/DateTimeToRfc3339TransformerTest.php @@ -49,12 +49,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 @@ -132,7 +132,7 @@ public function testReverseTransformExpectsValidDateString($date) $transformer->reverseTransform($date); } - public static function invalidDateStringProvider() + public static function invalidDateStringProvider(): array { return [ 'invalid month' => ['2010-2010-01'],