PHP Fatal error: Type of Drupal\stage_file_proxy\Commands\StageFileProxyCommands::$logger must be ?Psr\Log\LoggerInterface

Created on 27 September 2023, 9 months ago

Problem/Motivation

Might be a bit hard to actually fix in the most backwards compatible way. I guess that would be renaming the protected variable or something?

Either way. Posting a patch here for people using drupal 10.1 and drush 11.

Steps to reproduce

Run any drush command having psr/log >= 3.0.0 installed

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: duplicate

Version

2.1

Component

Code

Created by

πŸ‡³πŸ‡΄Norway eiriksm Norway

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

Comments & Activities

  • Issue created by @eiriksm
  • Status changed to Closed: duplicate 9 months ago
  • πŸ‡³πŸ‡΄Norway eiriksm Norway

    Hm, I retract that. The 2.x version seems to work. The 1.x version is indicated to work with 10.x though, but this seems to not be the case, just as an FYI.

    I would probably still recommend to upgrade to 2.x if you stumble upon this issue.

    The fixed issue in 2.x is #3325366: Add support for D9 on 2.0.x branch β†’

Production build 0.69.0 2024