From 97ff1af156f4ae776f8e09486c7c4b9574869b89 Mon Sep 17 00:00:00 2001 From: Hamad Rashid <80243282+Hamad-Rashid@users.noreply.github.com> Date: Tue, 31 Dec 2024 19:28:24 +0500 Subject: [PATCH] Update ConstructorPromotion.php the optional parameter $email is declared before a required parameter $birth_date, which is not allowed in PHP 8. In PHP, optional parameters must always come after the required parameters. --- tests/integration/data/PHP8/ConstructorPromotion.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/data/PHP8/ConstructorPromotion.php b/tests/integration/data/PHP8/ConstructorPromotion.php index cc1883c6..14aba3dd 100644 --- a/tests/integration/data/PHP8/ConstructorPromotion.php +++ b/tests/integration/data/PHP8/ConstructorPromotion.php @@ -22,7 +22,7 @@ public function __construct( * @var string $name property description */ public string $name, - protected string $email = 'test@example.com', private DateTimeImmutable $birth_date, + protected string $email = 'test@example.com', ) {} }