diff --git a/tests/php-unit-tests/unitary-tests/sources/core/Email/Transport/SymfonyPHPMailTransportTest.php b/tests/php-unit-tests/unitary-tests/sources/core/Email/Transport/SymfonyPHPMailTransportTest.php index 97f1db109d..787ef6d82e 100644 --- a/tests/php-unit-tests/unitary-tests/sources/core/Email/Transport/SymfonyPHPMailTransportTest.php +++ b/tests/php-unit-tests/unitary-tests/sources/core/Email/Transport/SymfonyPHPMailTransportTest.php @@ -8,7 +8,7 @@ class SymfonyPHPMailTransportTest extends ItopTestCase { public function testPrepareMustNotThrowErrorWhenToHeaderIsMissing(): void { - $oEmail = new Email() + $oEmail = (new Email()) ->from('sender@example.com') ->cc('cc1@example.com', 'cc2@example.com') ->text('Body');