By benjifisher on
Change record status:
Draft (View all draft change records)
Project:
Introduced in branch:
11.x
Introduced in version:
11.4.0
Issue links:
Description:
Drupal\text\Plugin\Field\FieldType\TextItemBase implements onDependencyRemoval() with this function signature:
public static function onDependencyRemoval(FieldDefinitionInterface $field_definition, array $dependencies): bool {
If a contrib or custom module extends TextItemBase and overrides this method, then it should use a compatible signature. In particular, it should include the return-type declaration. (The signature in the parent class, Drupal\Core\Field\FieldItemBase, does not include the return-type declaration.)
Impacts:
Module developers