EmbeddedImageValidator - wrong parametertype in __construct

Created on 15 December 2023, 7 months ago
Updated 3 January 2024, 6 months ago

Sorry for the short description, I have no complete access to my dev-system over the weekend, but I have found a bug in the class EmbeddedImageValidator. Its constructur should be

  public function __construct(FileSystemInterface $fileSystem, $mimeTypeGuesser) {...}

and not ...(Filesystem...).

We use the S3Filesystem and sending the test email (/admin/config/system/symfony-mailer-lite/test) gave us
TypeError: Drupal\symfony_mailer_lite\EmbeddedImageValidator::__construct(): Argument #1 ($fileSystem) must be of type Drupal\Core\File\FileSystem, Drupal\s3fs\S3fsFileService given

Sorry again, patch could be produced on Monday earliest...

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany didumir

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024