Move the hook implementations to OOP hooks.
Issue fork scanner-3586669
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:
Move the hook implementations to OOP hooks.
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
grask0 commentedComment #4
grask0 commentedComment #5
damienmckennaThank you for putting that together. I've launched the tests against D10 to confirm there aren't any regressions.
Comment #6
damienmckennaComment #7
damienmckennaThe test run against D10 fails, so this needs some additional work.
Comment #8
grask0 commentedSorry, my bad. Now it should be ok.
Thanks!
Comment #9
damienmckennaThank you for that.
Would you mind using the other approach for the backwards compatibility - add items to the services.yml file for each hook and then call the the services in the old hook code? That should be cleaner for D10 sites, and avoids needing to add the phpstan changes to make the testbot ignore the problems. Thank you again.
Comment #10
damienmckennaThis needs to be updated after some recent changes to the 2.0.x branch.
Comment #11
grask0 commentedHey, sorry for the delay!
Comment #12
damienmckennaThank you!
Comment #13
smustgrave commentedMy mistake I went ahead and merged the bot one https://www.drupal.org/project/scanner/issues/3602660
So this one maybe we can just cleanup what it did and better organize?
Comment #17
smustgrave commentedRebased and cleaned up some. Thanks.