PHP 8.2 deprecations

Created on 20 April 2023, over 1 year ago
Updated 4 October 2023, about 1 year ago

Problem/Motivation

PHP Fatal error:  Declaration of Drupal\mongodb_watchdog\Controller\ArgumentResolver\FormStateValueResolver::supports(Symfony\Component\HttpFoundation\Request $request, Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata $argument) must be compatible with Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface::supports(Symfony\Component\HttpFoundation\Request $request, Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata $argument): bool in /app/web/modules/contrib/mongodb/modules/mongodb_watchdog/src/Controller/ArgumentResolver/FormStateValueResolver.php on line 23

Fatal error: Declaration of Drupal\mongodb_watchdog\Controller\ArgumentResolver\FormStateValueResolver::supports(Symfony\Component\HttpFoundation\Request $request, Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata $argument) must be compatible with Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface::supports(Symfony\Component\HttpFoundation\Request $request, Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata $argument): bool in /app/web/modules/contrib/mongodb/modules/mongodb_watchdog/src/Controller/ArgumentResolver/FormStateValueResolver.php on line 23

Steps to reproduce

Use PHP 8.2 and latest Drupal 10, install mongodb_watchdog module

Proposed resolution

Fix the implementation of ArgumentValueResolverInterface to match Symfony.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Watchdog (logger)

Created by

🇺🇸United States stevenlafl

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

Comments & Activities

Production build 0.71.5 2024