Problem/Motivation
In Drupal 10.1.6 we are getting this error in our logs:
TypeError: Drupal\Core\Render\Element::children(): Argument #1 ($elements) must be of type array, null given, called in web/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php on line 966 in Drupal\Core\Render\Element::children() (line 72 of web/core/lib/Drupal/Core/Render/Element.php).
Steps to reproduce
Install Drupal 10. Use a filter in views. We are also using the Better Exposed Filters module.
Proposed resolution
See attached proposed patch.