Problem/Motivation

Fatal error: Declaration of Drupal\control_admin_access\CaaMiddleware::handle(Symfony\Component\HttpFoundation\Request $request, $type = self::MAIN_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 /home/dev/drupal10-boilerplate/web/modules/contrib/control_admin_access/src/CaaMiddleware.php on line
57

Steps to reproduce

Fresh clean install of Drupal 10

Proposed resolution

1. Check CaaMiddleware.php file
2. Add the types of input variables of handle function

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Borja Castellano Vinaixa’s picture

Issue summary: View changes

gmoraleb made their first commit to this issue’s fork.

gmoraleb’s picture

Hello,

I have created a PR with the solution.
Please, check it if it works in your environment asap and merge it :)

Thanks.

gmoraleb’s picture

Status: Active » Needs review

  • programeta committed 7043a040 on 8.x-1.0 authored by gmoraleb
    Resolve #3408517 "Fatal error: /home/dev/drupal10-boilerplate/web/...

pgrandeg’s picture

Status: Needs review » Fixed
Issue tags: +ContributionWeekend2025

Fixed on 1.3 release.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.