mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
DX: rector rules upt to PHP 74
This commit is contained in:
@@ -63,9 +63,7 @@ final class AddressConverterTest extends TestCase
|
||||
{
|
||||
$engine = $this->prophesize(EngineInterface::class);
|
||||
$translatableStringHelper = $this->prophesize(TranslatableStringHelperInterface::class);
|
||||
$translatableStringHelper->localize(Argument::type('array'))->will(static function ($args): string {
|
||||
return ($args[0] ?? ['fr' => 'not provided'])['fr'] ?? 'not provided';
|
||||
});
|
||||
$translatableStringHelper->localize(Argument::type('array'))->will(static fn($args): string => ($args[0] ?? ['fr' => 'not provided'])['fr'] ?? 'not provided');
|
||||
|
||||
$addressRender = new AddressRender($engine->reveal(), $translatableStringHelper->reveal());
|
||||
|
||||
|
Reference in New Issue
Block a user