Fatal error: Declaration of AzBlobFsImageStyleDownloadController must be compatible with ImageStyleDownloadController

Created on 25 June 2024, 5 months ago
Updated 11 September 2024, 2 months ago

Problem/Motivation

Steps to reproduce

Upgrade drupal to version 10.3.
Update database using drush updb

I get this error :
PHP Fatal error: Declaration of Drupal\az_blob_fs\Controller\AzBlobFsImageStyleDownloadController::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 /var/www/docroot/modules/contrib/az_blob_fs/src/Controller/AzBlobFsImageStyleDownloadController.php on line 89
> [warning] Drush command terminated abnormally.

Proposed resolution

Change function from
public function deliver(Request $request, $scheme, ImageStyleInterface $image_style) {
to
public function deliver(Request $request, $scheme, ImageStyleInterface $image_style, string $required_derivative_scheme) {

πŸ› Bug report
Status

Active

Version

2.3

Component

Code

Created by

πŸ‡«πŸ‡·France ckhalilo

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

Comments & Activities

Production build 0.71.5 2024