Plugin Not compatible with better_exposed_filters plugin

Created on 10 November 2024, 13 days ago

Problem/Motivation

Better Exposed Filters: isApplicable methods declarations must be compatible with FilterWidgetBase methods.

I receive these errors in the JS console when I try to access the Better Exposed filter configuration in a view:
Fatal error: Declaration of Drupal\daterangepickerwidget\Plugin\better_exposed_filters\filter\DateRangePickerFilter::isApplicable($filter = null, array $filter_options = []) must be compatible with Drupal\better_exposed_filters\Plugin\better_exposed_filters\filter\FilterWidgetBase::isApplicable(mixed $filter = null, array $filter_options = []): bool

Proposed resolution

Update method declarations to match the parent class.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇻🇪Venezuela joseft40 Mérida

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

Comments & Activities

Production build 0.71.5 2024