- Issue created by @dries arnolds
- 🇮🇳India kulpratap2002
When we installed the module in Drupal 11, the following error occurred:
PHP Fatal error: Type of Drupal\migrate_wizard\Form\BaseFormFields::$typedConfigManager must be Drupal\Core\Config\TypedConfigManagerInterface (as in class Drupal\Core\Form\ConfigFormBase) This happened because Drupal 11 enforces stricter type-checking. The BaseFormFields class extends ConfigFormBase, which already defines $typedConfigManager as an instance of TypedConfigManagerInterface.
However, in the module's code, the property was declared without a type:
protected $typedConfigManager = NULL;
This meant that when Drupal tried to validate the type against the parent class (ConfigFormBase), it found a mismatch, causing the fatal error.
Please review.
Thanks - 🇮🇳India sayan_k_dutta
Cloned the repo and reviewed the MR. It seems that the MR solves the issue of PHP Fatal Error perfectly which was occuring during enabling the module. Attaching screencasts for reference and moving this to RTBC.
- 🇪🇸Spain Carlos Romero
Thank you for reporting and collaborating.
I'm closing this issue!