Problem/Motivation
After enabling the module, drush throws this error: "Type of Drupal\save_all_nodes\Commands\SaveAllNodesCommands::$logger must be ?Psr\Log\LoggerInterface".
Steps to reproduce
Having installed:
1. Drupal 10.0.9
2. Drush 11.5.1
3. drupal/save_all_modules 1.0.1
Install the module with composer and try to using drush.
Proposed resolution
Fix the type hinting for variable $logger in /src/Commands/SaveAllNodesCommands.php on line 16
I have added a patch.
| Comment | File | Size | Author |
|---|---|---|---|
| save_all_nodes.1.x-dev.drush-logger-interface.patch | 711 bytes | Xalabama |
Issue fork save_all_nodes-3364951
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
geoanders commentedComment #5
zarpele commentedI can confirm the patch solves the issue, I have created the MR of it.
Comment #7
geoanders commentedThanks for the fix! Now merged in.