Allow filter option of LogDataTable to be null (which is the default)

This should fix the failing PHPunit action
This commit is contained in:
Jan Böhmer 2022-09-11 19:04:05 +02:00
parent a541105e12
commit aa719ab79a

View file

@ -105,7 +105,7 @@ class LogDataTable implements DataTableTypeInterface
$optionsResolver->setAllowedTypes('filter_elements', ['array', 'object']);
$optionsResolver->setAllowedTypes('mode', 'string');
$optionsResolver->setAllowedTypes('filter', LogFilter::class);
$optionsResolver->setAllowedTypes('filter', ['null', LogFilter::class]);
$optionsResolver->setNormalizer('filter_elements', static function (Options $options, $value) {
if (!is_array($value)) {