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

@@ -68,14 +68,8 @@ final class DateNormalizerTest extends KernelTestCase
/**
* @dataProvider generateDataNormalize
*
* @param mixed $expected
* @param mixed $date
* @param mixed $format
* @param mixed $locale
* @param mixed $msg
*/
public function testNormalize($expected, $date, $format, $locale, $msg)
public function testNormalize(mixed $expected, mixed $date, mixed $format, mixed $locale, mixed $msg)
{
$this->assertEquals($expected, $this->buildDateNormalizer($locale)->normalize($date, $format, []), $msg);
}

View File

@@ -51,10 +51,8 @@ final class DoctrineExistingEntityNormalizerTest extends KernelTestCase
/**
* @dataProvider dataProviderUserId
*
* @param mixed $userId
*/
public function testGetMappedClass($userId)
public function testGetMappedClass(mixed $userId)
{
$data = ['type' => 'user', 'id' => $userId];
$supports = $this->normalizer->supportsDenormalization($data, User::class);

View File

@@ -38,12 +38,8 @@ final class PhonenumberNormalizerTest extends TestCase
/**
* @dataProvider dataProviderNormalizePhonenumber
*
* @param mixed $format
* @param mixed $context
* @param mixed $expected
*/
public function testNormalize(?Phonenumber $phonenumber, $format, $context, $expected)
public function testNormalize(?Phonenumber $phonenumber, mixed $format, mixed $context, mixed $expected)
{
$parameterBag = $this->prophesize(ParameterBagInterface::class);
$parameterBag->get(Argument::exact('chill_main'))->willReturn(['phone_helper' => ['default_carrier_code' => 'BE']]);