Problem/Motivation
DynamicEntityReferenceOptionsTrait supplies the massageFormValues() method. When it is consumed by DynamicEntityReferenceOptionsButtonsWidget and DynamicEntityReferenceOptionsSelectWidget it ultimately overrides OptionsWidgetBase.
Drupal 12 changed OptionsWidgetBase's massageFormValues to declare an : array return type
Steps to reproduce
While testing out Drupal 12.0.0-beta2 and DER 3.2.3 database updates loaded the widget while processing field-display configuration, exposing the signature incompatibilty.
Proposed resolution
Add : array to DynamicEntityReferenceOptionsTrait::massageFormValues() so its signature matches Drupal core's OptionsWidgetBase.
Issue fork dynamic_entity_reference-3631620
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 #3
thursday_bw commentedComment #5
larowlanNeed a v4 and v5 equivalent so updating status
v3 is committed
Comment #8
thursday_bw commentedV4 and 5 ports now have MRs !64 and !63 respectively.
There's PHPStan issues in the existing branches.
Comment #11
larowlanthanks Bevan, merged those two as well