Not compatible with D9: symfony/http-kernel

Created on 29 September 2023, about 1 year ago
Updated 12 September 2024, 4 months ago

Problem/Motivation

Declaration of
Drupal\cloudflare\CloudFlareMiddleware::handle(Symfony\Component\HttpFoundation\Request $request, $type = self::MAIN_REQUEST, bool $catch = true): Symfony\Component\HttpFoundation\Response
 must be compatible with Symfony\Component\HttpKernel\HttpKernelInterface::handle(Symfony\Component\HttpFoundation\Request $request, $type = self::MASTER_REQUEST, $catch = true)
in /var/www/html/web/modules/contrib/cloudflare/src/CloudFlareMiddleware.php

Steps to reproduce

Install v2 with Drupal 9.x (I'm using 9.5.11)

D10: Symfony\Component\HttpKernel\HttpKernelInterface::handler
public function handle(Request $request, int $type = self::MAIN_REQUEST, bool $catch = true): Response;

vs

D9: Symfony\Component\HttpKernel\HttpKernelInterface::handler
public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = true);

We have in v2:
public function handle(Request $request, $type = self::MAIN_REQUEST, bool $catch = TRUE): Response {}

🐛 Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

🇭🇺Hungary szato

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

Comments & Activities

Production build 0.71.5 2024