Problem/Motivation
I'd strongly recommend to enable PhpStan tests and fix all the issues. That's the only way to make sure that the module doesn't crash any Drupal sites.
Proposed resolution
I'll work on this and propose an MR with all required changes to get the test green.
Issue fork wa-3559549
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:
- 3559549-enable-phpstan-tests
changes, plain diff MR !2
Comments
Comment #3
jurgenhaasThe attached MR tests green for Drupal 11 now on level 6 for PhpStan. However, cleaning up the code unveiled a couple of code issues that you may want to review carefully. I think there have been bugs being found. I also left a few
@todocomments in the code for you.This should then also be tested against Drupal 10 once the MR from #3559539: Misconfiguration of Drupal core dependency got merged.
Comment #4
jurgenhaasAll tests are now green, and it tests against current (11.2), next minor (11.3), and previous major (10.5). That way, you can be pretty sure that updates are safe, and you get early warnings in case any upstream changes will require updates in the codebase of this module.
Comment #6
mingsongThank you.