PHP 8.0 introduced Constructor Property Promotion, which allows combining class property declarations and the constructor into a single signature. This significantly reduces boilerplate code, improves readability, and makes class definitions cleaner.

Issue fork flag-3593426

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ivnish created an issue. See original summary.

  • ivnish committed e9cf8ece on 5.1.x
    task: #3593426 Update constructors to "Constructor Property Promotion"...
ivnish’s picture

Assigned: ivnish » Unassigned
Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.