PHP 8 issue with entity_embed_field_info_formatter_settings

Created on 15 November 2023, 7 months ago
Updated 3 April 2024, 3 months ago

Problem/Motivation

Presently, entity_embed_field_info_formatter_settings() sometimes generates Optional parameter $settings declared before required parameter $form_state is implicitly treated as a required parameter in require_once() due to its function signature placing an optional parameter before required parameters which is deprecated as of PHP 8.0.0.

Steps to reproduce

Load entity_embed on a site using PHP 8+

Proposed resolution

Potentially drop declaration of settings parameter as optional, since all usages of it seem to supply the parameter.

API changes

Change $settings to required parameter?

πŸ› Bug report
Status

Closed: outdated

Version

3.0

Component

Code

Created by

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

Comments & Activities

Production build 0.69.0 2024