$fileSystem must be of type Drupal\Core\File\FileSystem

Created on 2 September 2024, 4 months ago
Updated 16 September 2024, 3 months ago

Problem/Motivation

TypeError: Drupal\chosen_lib\Commands\ChosenLibCommands::__construct(): Argument #1 ($fileSystem) must be of type Drupal\Core\File\FileSystem, Drupal\s3fs\S3fsFileService given in Drupal\chosen_lib\Commands\ChosenLibCommands->__construct() (line 31 of /var/www/html/modules/contrib/chosen/modules/chosen_lib/src/Commands/ChosenLibCommands.php).

Steps to reproduce

Run drush updb for example

Proposed resolution

Use FileSystemInterface instead of FileSystem in __construct.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡§πŸ‡ΎBelarus sergeiimalyshev

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

Comments & Activities

Production build 0.71.5 2024