Skip to content

Commit ee2c40d

Browse files
authored
Merge pull request #108 from stof/fix_phpstan
Add more precise types to fix static analysis errors
2 parents 3bc406c + 616e496 commit ee2c40d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

tests/Form/GeneralTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ public function testSubmitEmptyTextarea(): void
353353
/**
354354
* @dataProvider provideInvalidValues
355355
*
356-
* @param array<array-key, mixed>|bool|string $value
356+
* @param list<string>|bool|string $value
357357
*/
358358
public function testSetInvalidValueInField(string $field, $value): void
359359
{
@@ -368,7 +368,7 @@ public function testSetInvalidValueInField(string $field, $value): void
368368
}
369369

370370
/**
371-
* @return iterable<string, array{string, mixed}>
371+
* @return iterable<string, array{string, list<string>|bool|string}>
372372
*/
373373
public static function provideInvalidValues(): iterable
374374
{

tests/Form/Html5Test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public function testHtml5FormMethod(): void
163163
/**
164164
* @dataProvider provideInvalidValues
165165
*
166-
* @param array<array-key, mixed>|bool|string $value
166+
* @param list<string>|bool|string $value
167167
*/
168168
public function testSetInvalidValueInField(string $field, $value): void
169169
{
@@ -178,7 +178,7 @@ public function testSetInvalidValueInField(string $field, $value): void
178178
}
179179

180180
/**
181-
* @return iterable<string, array{string, mixed}>
181+
* @return iterable<string, array{string, list<string>|bool|string}>
182182
*/
183183
public static function provideInvalidValues(): iterable
184184
{

0 commit comments

Comments
 (0)