Skip to content

Commit 2e5765e

Browse files
committed
ci: Added phpdoc for test_get_date to avoid phpstan error
1 parent 95c2071 commit 2e5765e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/Unit/ItemTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ public function test_get_content(string $data, string $expected): void
663663
}
664664

665665
/**
666-
* @return array<string, array{string, int|null}>
666+
* @return array<string, array{0: string, 1: int|string|null, 2?: string}>
667667
*/
668668
public static function getDateDataProvider(): array
669669
{
@@ -1363,6 +1363,8 @@ public static function getDateDataProvider(): array
13631363
}
13641364

13651365
/**
1366+
* @param int|string|null $expected
1367+
*
13661368
* @dataProvider getDateDataProvider
13671369
*/
13681370
public function test_get_date(string $data, $expected, string $format = 'U'): void

0 commit comments

Comments
 (0)