Update middleware class to work with symfony 6

Created on 17 October 2023, 9 months ago

Problem/Motivation

The request_dumper module needs a fix for the new symfony version:

        W: 
        W: PHP Fatal error:  Declaration of Drupal\request_dumper\StackMiddleware\RequestDumper::handle(Symfony\Component\HttpFoundation\Request $request, $type = self::MASTER_REQUEST, $catch = true) must be compatible with Symfony\Component\HttpKernel\HttpKernelInterface::handle(Symfony\Component\HttpFoundation\Request $request, int $type = self::MAIN_REQUEST, bool $catch = true): Symfony\Component\HttpFoundation\Response in /app/web/modules/contrib/request_dumper/src/StackMiddleware/RequestDumper.php on line 55

Steps to reproduce

Use the module with Drupal 10+

Proposed resolution

Fix the class
Add some (functional?) tests

πŸ› Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States pwolanin

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

Comments & Activities

Production build 0.69.0 2024