Drupal 10 openid_connect module version "1.4" deprecation on '\Symfony\Component\HttpKernel\Event\GetResponseEvent $event'

Created on 15 December 2023, about 1 year ago

Problem/Motivation

Upgrading to drupal 10 and using openid_connect version "1.4" has \Symfony\Component\HttpKernel\Event\GetResponseEvent $event deprecation.

Steps to reproduce

  • upgrade drupal 10 with openid_connect : 1.4 version.
  • go to this path "src/EventSubscriber/Redirect.php"
  • "Symfony\Component\HttpKernel\Event\GetResponseEvent" is deprecated in symfony 6.
  • throwing error::
  • The website encountered an unexpected error. Please try again later.
    TypeError: Drupal\*****\EventSubscriber\Redirect::onRequest(): Argument #1 ($event) must be of type Symfony\Component\HttpKernel\Event\GetResponseEvent, Symfony\Component\HttpKernel\Event\RequestEvent given in Drupal\*****\EventSubscriber\Redirect->onRequest() (line 40 of modules/custom/****/src/EventSubscriber/Redirect.php).

Proposed resolution

Replace "Symfony\Component\HttpKernel\Event\GetResponseEvent" ==> "Symfony\Component\HttpKernel\Event\RequestEvent"

πŸ› Bug report
Status

Needs review

Version

1.4

Component

Code

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

Comments & Activities

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 10.1.4 + Environment: PHP 7.4 & MySQL 5.7
    last update about 1 year ago
    Patch Failed to Apply
  • Issue created by @yaswanth pamuru
  • Status changed to Closed: works as designed about 1 month ago
  • πŸ‡ΊπŸ‡ΈUnited States dcam

    There is no EventSubscriber\Redirect class in any version. Furthermore, the last line of that error message:

    (line 40 of modules/custom/****/src/EventSubscriber/Redirect.php)

    ...suggests that this was an error in a custom module, not openid_connect.

Production build 0.71.5 2024