Skip to content

Update ConstructorPromotion.php#644

Closed
Hamad-Rashid wants to merge 1 commit intophpDocumentor:6.xfrom
Hamad-Rashid:patch-1
Closed

Update ConstructorPromotion.php#644
Hamad-Rashid wants to merge 1 commit intophpDocumentor:6.xfrom
Hamad-Rashid:patch-1

Conversation

@Hamad-Rashid
Copy link

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.

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.
@Hamad-Rashid
Copy link
Author

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.

@jaapio jaapio enabled auto-merge January 2, 2025 18:24
@jaapio
Copy link
Member

jaapio commented Jan 2, 2025

Thanks for your help

@AJenbo
Copy link

AJenbo commented Jan 4, 2026

This is not correct, it became valid in PHP 8.0 because of named parameters. Only in 7.4 and older was this invalid. Considering that the project requires PHP 8.1 there shouldn't be a need for this change.

@jaapio
Copy link
Member

jaapio commented Mar 2, 2026

This pr hasn't had any updates since my first comment. I will close this.

@jaapio jaapio closed this Mar 2, 2026
auto-merge was automatically disabled March 2, 2026 21:36

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants