Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x] Use constructor property promotion in events #11380

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Jan 23, 2025

This pull request refactors events to use PHP 8's constructor property promotion feature. It makes the events a little bit cleaner and takes advantage of a fairly new feature in PHP.

Apologies for the number of files changed - we have a lot of events 😄

@jasonvarga jasonvarga merged commit 10ae91c into 5.x Jan 23, 2025
21 checks passed
@jasonvarga jasonvarga deleted the events-constructor-property-promotion branch January 23, 2025 15:14
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.

2 participants