The module generates a strict PHP notice:

Strict warning: Drupal\Core\Plugin\PluginBase and Drupal\Core\StringTranslation\StringTranslationTrait define the same property ($stringTranslation) in the composition of Drupal\select2_bef\Plugin\views\exposed_form\BetterExposedFilters. This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed in include() (line 404 of modules/contrib/select2boxes/modules/select2_bef/src/Plugin/views/exposed_form/BetterExposedFilters.php).

This error has been previously addressed in the Better Exposed Filters project (https://www.drupal.org/project/better_exposed_filters/issues/2811779) - presumably the Drupal\select2_bef\Plugin\views\exposed_form\BetterExposedFilters class is a copy of the BEF one from before the fix was applied.

Comments

MrDaleSmith created an issue. See original summary.

mrdalesmith’s picture

Adding patch to remove unrequired trait.

mrdalesmith’s picture

Status: Active » Needs review
valentine94’s picture

Status: Needs review » Reviewed & tested by the community

MrDaleSmith, nice catch, thanks

  • matsbla committed a4b88f7 on 8.x-1.x authored by MrDaleSmith
    Issue #2982628 by MrDaleSmith, Valentine94: PHP Strict warning: Drupal\...
matsbla’s picture

Status: Reviewed & tested by the community » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.