Problem/Motivation
error when install module on Drupal 10, PHP Fatal error: Type of Drupal\linkchecker\Commands\LinkCheckerCommands::$logger must be ?Psr\Log\LoggerInterface (as in class Drush\Commands\DrushCommands) in /app/docroot/modules/contrib/linkchecker/src/Commands/LinkCheckerCommands.php on line 16
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork linkchecker-3406749
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:
Comments
Comment #2
richardrobinson commentedI'm running 10.1.5 and there were no issues upon install. Can you provide more details on your setups and steps to reproduce?
Comment #3
eiriksmThat probably means it's not compatible with drush 12. Install drush 11 if possible for your project
Comment #6
chetan 11 commentedHi,
I have fixed the above error on "link checker" module, please check the raised MR.
Thanks.
Comment #7
joseph.olstadseems that this is needed for drush commands to work with LinkChecker on D10
Comment #8
eiriksmComment #10
eiriksmComment #11
eiriksmThanks everyone. Those changes make sense to me