From 7dbbf742c443e1b365025d165f7e43bbb236bec9 Mon Sep 17 00:00:00 2001 From: jf-cbd Date: Tue, 25 Aug 2026 17:05:30 +0200 Subject: [PATCH] Fix code syntax (that was only 8.4+) --- .../core/Email/Transport/SymfonyPHPMailTransportTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');