Problem/Motivation

Hi, when updating to Drupal 11.4 I get:

Fatal error: Uncaught TypeError: Drupal\Core\Routing\StaticRouteDiscoveryBase::createRoute(): Argument #7 ($methods) must be of type array, string given, called in /var/www/html/web/core/lib/Drupal/Core/Routing/YamlRouteDiscovery.php on line 83 and defined in /var/www/html/web/core/lib/Drupal/Core/Routing/StaticRouteDiscoveryBase.php:77

This is because methods in the routing file are defines as strings, like 'GET', but should be arrays, like [GET].

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

vegardjo created an issue. See original summary.

vegardjo’s picture

Status: Active » Needs review
andeersg’s picture

Status: Needs review » Reviewed & tested by the community

Test applies and fixes the 11.4 error.