DX: apply rector rules up to php8.0

This commit is contained in:
2023-04-15 01:05:37 +02:00
parent d8870e906f
commit dde3002100
714 changed files with 2348 additions and 9263 deletions

View File

@@ -108,10 +108,8 @@ final class PersonDocGenNormalizerTest extends KernelTestCase
/**
* @dataProvider dataGeneratorNormalizationNullOrNotNullHaveSameKeys
*
* @param mixed $context
*/
public function testNormalizationNullOrNotNullHaveSameKeys($context)
public function testNormalizationNullOrNotNullHaveSameKeys(mixed $context)
{
$period = new Person();
$notNullData = $this->buildPersonNormalizer()->normalize($period, 'docgen', $context);
@@ -126,11 +124,8 @@ final class PersonDocGenNormalizerTest extends KernelTestCase
/**
* @dataProvider generateData
*
* @param mixed $expected
* @param mixed $msg
*/
public function testNormalize(?Person $person, $expected, $msg)
public function testNormalize(?Person $person, mixed $expected, mixed $msg)
{
$normalized = $this->normalizer->normalize($person, 'docgen', [
'docgen:expects' => Person::class,
@@ -229,11 +224,8 @@ final class PersonDocGenNormalizerTest extends KernelTestCase
* serializers.
*
* @dataProvider generateData
*
* @param mixed $expected
* @param mixed $msg
*/
public function testNormalizeUsingNormalizer(?Person $person, $expected, $msg)
public function testNormalizeUsingNormalizer(?Person $person, mixed $expected, mixed $msg)
{
$normalizer = $this->buildNormalizer();