Type of Drupal\activity_creator\Commands\CleanUpActivitiesDrushCommands::$logger must not be defined (as in class Drush\Commands\DrushCommands)

Created on 1 June 2025, 24 days ago

Problem/Motivation

I am getting this issue in my install.

php8.3
Drupal 10.4.x (Yes I am experimenting with a different version of Drupal)

Steps to reproduce

This issue occurs because Drush Commands in Drupal 10 use the LoggerAwareTrait which provides logger functionality, and redefining the $logger property in child classes creates a type conflict with the trait's expectations

Proposed resolution

Remove redfined

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Active

Version

13.0

Component

Code (back-end)

Created by

πŸ‡ΊπŸ‡ΈUnited States SocialNicheGuru

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

Comments & Activities

Production build 0.71.5 2024