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.

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

brooke_heaton created an issue. See original summary.

brooke_heaton’s picture

Status: Active » Needs review

podarok made their first commit to this issue’s fork.

podarok’s picture

Version: 8.x-1.0-rc12 » 2.0.x-dev
Status: Needs review » Fixed

tnx

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.