mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 22:35:01 +00:00
DX: apply rector rules up to php8.0
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
@@ -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);
|
||||
|
@@ -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']]);
|
||||
|
Reference in New Issue
Block a user