Type of Drupal\save_all_nodes\Commands\SaveAllNodesCommands::$logger must be ?Psr\Log\LoggerInterface

Created on 5 June 2023, over 1 year ago
Updated 20 June 2023, over 1 year ago

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.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024