Created on 6 October 2022, over 1 year ago
Updated 7 February 2023, over 1 year ago

PHP 8.1 doesn't like unset array indices, like $definition['field_types'] and $definition['settings'] that can be unset.

Change:

      else {
        $field_types = array_merge($field_types, $definition['field_types']);
      }

      $field_info['field_types'] = NestedArray::mergeDeep($field_info['field_types'], $field_types);
      $field_info['settings'] = NestedArray::mergeDeep($field_info['settings'], $definition['settings']);

to:

      else {
        if (isset($definition['field_types'])) {
          $field_types = array_merge($field_types, $definition['field_types']);
        }
      }

      $field_info['field_types'] = NestedArray::mergeDeep($field_info['field_types'], $field_types);
      if (isset($definition['settings'])) {
        $field_info['settings'] = NestedArray::mergeDeep($field_info['settings'], $definition['settings']);
      }

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom fonant

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024