Method Drupal\Core\Form\ConfigFormBase::__construct() invoked with 1 parameter, 2 required

Created on 6 March 2025, about 1 month ago

Problem/Motivation

phpstan caught this:

------ ---------------------------------------------------------------------- 
  Line   src/Form/VaisPromoSettingsForm.php                                    
 ------ ---------------------------------------------------------------------- 
  36     Method Drupal\Core\Form\ConfigFormBase::__construct() invoked with 1  
         parameter, 2 required.                                                
 ------ ---------------------------------------------------------------------- 
 [ERROR] Found 1 error             

In Drupal 11, there is this issue: https://www.drupal.org/project/drupal/issues/3394197 πŸ› [regression] The new property \Drupal\Core\Form\ConfigFormBase::$typedConfigManager conflicts with some contrib modules Fixed

Proposed resolution

Update the call to the parent constructor to include the TypedConfigManagerInterface.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States tzura

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