Typo generates drush error

Created on 7 February 2025, 16 days ago

Problem/Motivation

I see an error message when I attempt to clear the cache or registry via drush (drush cc, drush cr)

TypeError: Drupal\tiny_slider\Commands\TinySliderCommands::__construct(): Argument #1 ($library_discovery) must be of type Drupal\Core\Asset\libraryDiscovery, Drupal\Core\Asset\LibraryDiscoveryCollector given in Drupal\tiny_slider\Commands\TinySliderCommands->__construct() (line 34 of /home/mediamer/public_html/modules/contrib/tiny_slider/src/Commands/TinySliderCommands.php).

Proposed resolution

Go to tiny_slider/src/Commands/TinySliderCommands.php, and remove the double underscore __ at line 34.

The error message is gone, drush works fine, the module works fine (I'm running it on D11 by the way)

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇨🇦Canada mediameriquat

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

Comments & Activities

Production build 0.71.5 2024