Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Now that #3338356: Shift requirements to Drupal 10 has landed, we can adopt new PHP 8.1 features and remove a lot of boilerplate:
14 files changed, 84 insertions(+), 516 deletions(-)
See #3321474: Adopt PHP 8.1-only capabilities such as constructor property promotion + drop BC layers for inspiration
Steps to reproduce
Proposed resolution
Remaining tasks
- ✅ File an issue about this project
- ☐ Manual Testing
- ☐ Code Review
- ☐ Accessibility Review
- ☐ Automated tests needed/written?
Issue fork project_browser-3342128
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
Comment #3
chrisfromredfinWould love it if someone wanted to rebase this and continue the work. Everyone loves to delete code!
Comment #5
elberI just rebased it.
Comment #6
chrisfromredfin@tim is this everywhere that we can do this, or are there other locations? I'll test it manually if we think it's good to go.
Comment #7
tim.plunkettPrevious rebase was more of a merge, and didn't pass tests. Manually rebased using `git rebase` and pushed.
@chrisfromredfin this should be all of it
Comment #8
chrisfromredfinOK, I have tested this thoroughly manually in DrupalPod, and I reviewed the code diff.
Comment #10
fjgarlin CreditAttribution: fjgarlin as a volunteer and at Drupal Association commentedLeft a comment in the MR with something that seems to be missing. Other than that one, the rest of the code looks good.
Comment #12
fjgarlin CreditAttribution: fjgarlin as a volunteer and at Drupal Association commentedThanks for the quick fix, I rechecked the code again and retested everything via drupalpod (including drush commands) and everything was good. As the issue was already RTBC and the feedback was really minor and fixed right away, I went ahead and merged it.