Update dataProvider phpunit-10 and clean more code. (#19889)

This commit is contained in:
Wilmer Arambula
2023-07-11 03:35:44 -04:00
committed by GitHub
parent 2e37b5c87d
commit 0a3394c6b7
77 changed files with 1333 additions and 970 deletions

View File

@@ -19,7 +19,7 @@ class ArrayParserTest extends TestCase
$this->arrayParser = new ArrayParser();
}
public static function convertProvider()
public static function convertProvider(): array
{
return [
['{}', []],
@@ -38,8 +38,11 @@ class ArrayParserTest extends TestCase
/**
* @dataProvider convertProvider
*
* @param string $string The string to convert.
* @param array $expected The expected result.
*/
public function testConvert($string, $expected)
public function testConvert(string $string, array $expected): void
{
$this->assertSame($expected, $this->arrayParser->parse($string));
}