$logger must be ?Psr\Log\LoggerInterface

Created on 3 September 2022, over 2 years ago
Updated 11 September 2023, over 1 year ago

Problem/Motivation

Using Drush 11 and Drupal 10, drush commands show the following error:

PHP Fatal error: Type of Drupal\config_update_ui\Commands\ConfigUpdateUiCommands::$logger must be ?Psr\Log\LoggerInterface (as in class Drush\Commands\DrushCommands) in /var/www/html/web/modules/contrib/config_update/config_update_ui/src/Commands/ConfigUpdateUiCommands.php on line 0

Removing the $logger variable from ConfigUpdateUiCommands seems to fix the error.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Drush commands

Created by

🇭🇺Hungary pasqualle 🇭🇺 Budapest

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
Production build 0.71.5 2024