Closed (fixed)
Project:
GraphQL
Version:
5.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Apr 2026 at 12:08 UTC
Updated:
13 May 2026 at 16:05 UTC
Jump to comment: Most recent
Our minimum PHP version is already 8.1 which means we can apply property promotion and remove a bunch of class properties to clean up some code.
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
kingdutchA mix of manual work and Cursor that I reviewed to make all the changes.
Cursor removed some unused properties, which I think is fine to do in this issue as well.
One thing I've not done which should be done in a follow-up is to fix some of the dependency injection anti-patterns that are currently present in the module, this will fail future PHPStan Drupal rules: https://mglaman.dev/blog/dependency-injection-anti-patterns-drupal. I'm leaving that to a follow-up because it's a more functional change that might require extending classes to make more changes than simply also applying constructor property promotion.
Comment #4
klausiThanks, just minor comments on the MR.
Comment #5
kingdutchComment #6
kingdutch