Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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']);
}
Issue fork list_formatter-3313914
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 #5
_shYfonant,
Thank you for your time!
Merged to 8.x-2.x-dev!
Comment #6
_shY