Closed (fixed)
Project:
Bulk Edit Terms
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Jun 2025 at 14:23 UTC
Updated:
11 Jul 2025 at 14:59 UTC
Jump to comment: Most recent
We can modernize the codebase a bit now that Drupal and PHP have evolved. E.g., NodeSelectTerms.php can use constructor property promotion, return types, typed arguments, etc. We also need some automated tests.
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
bkosborneOkay, MR added and ready for review.
Comment #4
fjgarlin commentedThanks for this. I will review it shortly. If this goes through, I’m thinking of creating a 2.x branch as we’re dropping support for older versions and adding support for newer ones.
I haven’t checked the code in detail yet, but if we require a minimum version of PHP to leverage the new language features we should add that requirement to the composer file too.
[edit] I guess that the PHP version might be determined by the minimum Drupal supported version as we don’t have a composer file.
Comment #5
bkosborneYea, I think we're good at just requiring Drupal 10, which requires PHP 8.1 already. I don't think I used any language features beyond 8.1.
Comment #6
fjgarlin commentedI just created the 2.x branch and moved the target branch of the MR to be that. I left some feedback on the MR, really minimal, and answer the question in the `@todo`. Feel free to do something about it here or in a follow-up.
The code looks really good and it'd be ready to merge into a 2.x branch.
I'll let you see the feedback first before marking it RTBC. Great job!
Comment #7
bkosborneThanks for the review! I addressed the feedback and pushed.
Comment #8
fjgarlin commentedComment #9
fjgarlin commentedSmall error in "phpcs". Once fixed, it can go directly into RTBC.
Comment #10
bkosborneFixed! Once this is merged, I can start work on the other two issues I created.
Comment #12
fjgarlin commentedThe MR is merged now. Thanks a lot for the improvements so far! Looking forward to reviewing more issues.