mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 17:39:06 +02:00
Allow filter option of LogDataTable to be null (which is the default)
This should fix the failing PHPunit action
This commit is contained in:
parent
a541105e12
commit
aa719ab79a
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue