From 616e496d60b3808ee973f7abbb53040fdc82f89a Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Sat, 22 Nov 2025 19:19:54 +0100 Subject: [PATCH] Add more precise types to fix static analysis errors --- tests/Form/GeneralTest.php | 4 ++-- tests/Form/Html5Test.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Form/GeneralTest.php b/tests/Form/GeneralTest.php index 36e8992..a55f0fa 100644 --- a/tests/Form/GeneralTest.php +++ b/tests/Form/GeneralTest.php @@ -353,7 +353,7 @@ public function testSubmitEmptyTextarea(): void /** * @dataProvider provideInvalidValues * - * @param array|bool|string $value + * @param list|bool|string $value */ public function testSetInvalidValueInField(string $field, $value): void { @@ -368,7 +368,7 @@ public function testSetInvalidValueInField(string $field, $value): void } /** - * @return iterable + * @return iterable|bool|string}> */ public static function provideInvalidValues(): iterable { diff --git a/tests/Form/Html5Test.php b/tests/Form/Html5Test.php index 4f80fa3..928a422 100644 --- a/tests/Form/Html5Test.php +++ b/tests/Form/Html5Test.php @@ -163,7 +163,7 @@ public function testHtml5FormMethod(): void /** * @dataProvider provideInvalidValues * - * @param array|bool|string $value + * @param list|bool|string $value */ public function testSetInvalidValueInField(string $field, $value): void { @@ -178,7 +178,7 @@ public function testSetInvalidValueInField(string $field, $value): void } /** - * @return iterable + * @return iterable|bool|string}> */ public static function provideInvalidValues(): iterable {