Compatibility with Better Exposed Filters 7

Created on 16 September 2024, 3 months ago
Updated 17 September 2024, 3 months ago

Problem/Motivation

With BEF v7.0.3, opening the settings popup for a BEF filter in a view results in the following error:

Fatal error: Declaration of Drupal\select2\Plugin\better_exposed_filters\filter\Select2::defaultConfiguration() must be compatible with Drupal\better_exposed_filters\Plugin\better_exposed_filters\filter\FilterWidgetBase::defaultConfiguration(): array in modules/contrib/select2/src/Plugin/better_exposed_filters/filter/Select2.php on line 21

Fixing that bug results in this error:

Fatal error: Declaration of Drupal\select2\Plugin\better_exposed_filters\filter\Select2::buildConfigurationForm(array $form, Drupal\Core\Form\FormStateInterface $form_state) must be compatible with Drupal\better_exposed_filters\Plugin\better_exposed_filters\filter\FilterWidgetBase::buildConfigurationForm(array $form, Drupal\Core\Form\FormStateInterface $form_state): array in modules/contrib/select2/src/Plugin/better_exposed_filters/filter/Select2.php on line 53

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

RTBC

Version

1.0

Component

Field widgets

Created by

🇺🇸United States DamienMcKenna NH, USA

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024