Missing FormStateInterface in course_node.module

Created on 2 October 2023, about 1 year ago
Updated 25 January 2024, 11 months ago

Problem/Motivation

TypeError: course_node_form_node_type_form_alter(): Argument #2 ($form_state) must be of type FormStateInterface, Drupal\Core\Form\FormState given, course_node_form_node_type_form_alter() (line 39 of /course/modules/course_node/course_node.module).

Steps to reproduce

  1. Enable sub-module: course_node
  2. Visit the /admin/structure/types/add page in order to see the error

Proposed resolution

All we need to do is add `use Drupal\Core\Form\FormStateInterface;`

Remaining tasks

Review patch.

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΈπŸ‡¦Saudi Arabia bamlhes

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

Comments & Activities

Production build 0.71.5 2024