Problem/Motivation
After upgrading to Drupal 9.4.3 on Php 8.0 I'm getting this fatal error with inline_entity_form 1.0@RC:
Fatal error: Could not check compatibility between Drupal\inline_entity_form\Form\NodeInlineForm::entityFormValidate(array &$entity_form, Drupal\inline_entity_form\Form\FormStateInterface $form_state) and Drupal\inline_entity_form\Form\EntityInlineForm::entityFormValidate(array &$entity_form, Drupal\Core\Form\FormStateInterface $form_state), because class Drupal\inline_entity_form\Form\FormStateInterface is not available in /app/web/modules/contrib/inline_entity_form/src/Form/NodeInlineForm.php on line 57
Looking at web/modules/contrib/inline_entity_form/src/Form/NodeInlineForm.php:8 I'm not seeing 'use' statements for either Drupal\Core\Form\FormStateInterface or Drupal\Core\Entity\EntityInterface. After adding these, the error goes away.
Steps to reproduce
Install inline_entity_form 1.0@RC on Drupal 9.4.3 using Php 8.0 - flush caches.
Proposed resolution
Add 'use' statements for FormStateInterface and EntityInterface to NodeInlineForm.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | could_not_check_compatibility_nodeinlineform_entityformvalidate_3298876_2.patch.patch | 720 bytes | brooke_heaton |
Issue fork inline_entity_form-3298876
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
Comment #3
brooke_heaton commentedSee Fork and PR: https://git.drupalcode.org/project/inline_entity_form/-/merge_requests/5....
Comment #4
brooke_heaton commentedComment #6
podaroktnx