Drupal 10.3 ImageStyleDownloadController::deliver signature change

Created on 3 April 2024, 10 months ago
Updated 28 July 2024, 6 months ago

Problem/Motivation

It looks like the signature of Drupal\image\Controller\ImageStyleDownloadController::deliver changes in Drupal 10.3 as we're seeing the following error when trying to enable the module:

PHP Fatal error:  Declaration of Drupal\remote_stream_wrapper\Controller\RemoteImageStyleDownloadController::deliver(Symfony\Component\HttpFoundation\Request $request, $scheme, Drupal\image\ImageStyleInterface $image_style) must be compatible with Drupal\image\Controller\ImageStyleDownloadController::deliver(Symfony\Component\HttpFoundation\Request $request, $scheme, Drupal\image\ImageStyleInterface $image_style, string $required_derivative_scheme) in web/modules/contrib/remote_stream_wrapper/src/Controller/RemoteImageStyleDownloadController.php on line 35

https://git.drupalcode.org/project/drupal/-/blob/10.3.x/core/modules/ima...

Steps to reproduce

Enable this module in a Drupal 10.3 installation.

Proposed resolution

Update the RemoteImageStyleDownloadController::deliver signature to be compatible. Update the call to the parent::deliver() method.

Remaining tasks

Write patch.

User interface changes

None.

API changes

I'm not sure when/how RemoteImageStyleDownloadController::deliver() is called but there could be impacts there.

Data model changes

None.

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇺🇸United States richardbporter

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024