DX: rector apply rules 'symfony up to 4.4

This commit is contained in:
2023-05-05 18:21:09 +02:00
parent f04ef9c931
commit efaa01f4f6
45 changed files with 75 additions and 74 deletions

View File

@@ -61,7 +61,7 @@ final class AddressConverterTest extends TestCase
private function buildAddressConverter(): AddressConverter
{
$engine = $this->prophesize(EngineInterface::class);
$engine = $this->prophesize(\Twig\Environment::class);
$translatableStringHelper = $this->prophesize(TranslatableStringHelperInterface::class);
$translatableStringHelper->localize(Argument::type('array'))->will(static fn ($args): string => ($args[0] ?? ['fr' => 'not provided'])['fr'] ?? 'not provided');

View File

@@ -64,7 +64,7 @@ final class DefaultShortMessageForCalendarBuilderTest extends TestCase
->setMobilenumber($this->phoneNumberUtil->parse('+32470123456', 'BE'))
->setAcceptSMS(false);
$engine = $this->prophesize(EngineInterface::class);
$engine = $this->prophesize(\Twig\Environment::class);
$engine->render(Argument::exact('@ChillCalendar/CalendarShortMessage/short_message.txt.twig'), Argument::withKey('calendar'))
->willReturn('message content')
->shouldBeCalledTimes(1);