From aa719ab79aaf737c0af9b0dccc1d68ca98217ca6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 11 Sep 2022 19:04:05 +0200 Subject: [PATCH] Allow filter option of LogDataTable to be null (which is the default) This should fix the failing PHPunit action --- src/DataTables/LogDataTable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DataTables/LogDataTable.php b/src/DataTables/LogDataTable.php index 20a6c641..e675d681 100644 --- a/src/DataTables/LogDataTable.php +++ b/src/DataTables/LogDataTable.php @@ -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)) {