Fatal error with Drupal 10.2

Created on 3 January 2024, 12 months ago
Updated 17 January 2024, 11 months ago

Problem/Motivation

After upgrading Drupal core to from 10.1.6 to 10.2 when i use drush cr I got a PHP fatal error

PHP Fatal error:  Type of Drupal\auto_config_form\AutoConfigFormBase::$typedConfigManager must not be defined (as in class Drupal\Core\Form\ConfigFormBase) in /Users/vince/Sites/dia/repo/www/modules/contrib/auto_config_form/src/AutoConfigFormBase.php on line 15

As the error says AutoConfigFormBase extends Drupal\Core\Form\ConfigFormBase\ConfigFormBase and also overrides its protected property with a type definition. But since the parent class defines this property with no type this cause an PHP error.

Proposed resolution

Remove type definition from AutoConfigBase class.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡­πŸ‡ΊHungary tikaszvince

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024