ImmutableTrustedRedirectResponse not compatible with SecuredRedirectResponse

Created on 20 June 2023, over 1 year ago

Problem/Motivation

After installing and enabling the module, this error shows up:

Fatal error: Declaration of Drupal\oidc\Routing\ImmutableTrustedRedirectResponse::setTargetUrl($url) must be compatible with Drupal\Component\HttpFoundation\SecuredRedirectResponse::setTargetUrl($url): static in /external/src/web/modules/contrib/oidc/src/Routing/ImmutableTrustedRedirectResponse.php on line 34

Steps to reproduce

Clean install using PHP8.1 and Drupal 10.

Proposed resolution

Add static keyword to the function declaration (see patch)

🐛 Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

🇪🇸Spain somms Sevilla

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

Comments & Activities

Production build 0.71.5 2024