Closed (fixed)
Project:
Metatag
Version:
2.2.x-dev
Component:
Tests
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
29 Jul 2024 at 19:56 UTC
Updated:
22 Apr 2026 at 15:55 UTC
Jump to comment: Most recent
There are a number of phpstan issues in 2.0.x that need to be resolved. It might be possible to fix them using better comments to more clearly define what certain variables are, possibly by overriding class attributes to change the variable definition.
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 #2
damienmckennaI updated the gitlab-ci file to require phpstan tests pass, so now to fix the phpstan tests.
Comment #4
ankitv18 commentedCan we create a child issues as phpstan having lot of issues reported.
One I can see is Avoid direct drupal calls should be work upon separately
Any thoughts? @damienmckenna
Comment #5
damienmckennaI think there are only a few types of problems identified, just repeated for different classes; I'd prefer to keep it as one issue.
Comment #6
ankitv18 commentedCool ~~ let me give a try to fix them
Comment #7
damienmckennaBumping this to 2.0.2.
Comment #8
damienmckennaComment #9
damienmckennaComment #10
damienmckennaComment #14
damienmckennaComment #15
damienmckennaComment #16
damienmckennaThe MR doesn't fix everything, but it's a good step forwards and additional work can be done in another issue.
Comment #18
damienmckennaThat's a line in the sand, more work can continue in other issues.
Comment #20
damienmckennaI created another issue to resolve the DI problems: #3582717: Replace \Drupal calls with dependency injection
Comment #22
damienmckennaFYI the changes to MetaNameBase accidentally broke other modules, so they are being reverted in #3583643: Revert accidental API changes.