diff --git a/src/Listener/ViewSearchListener.php b/src/Listener/ViewSearchListener.php index 9ccaf1b..e82d82e 100644 --- a/src/Listener/ViewSearchListener.php +++ b/src/Listener/ViewSearchListener.php @@ -124,11 +124,6 @@ public function fields(): array $input['type'] = 'select'; } - /** @psalm-suppress PossiblyUndefinedArrayOffset */ - if ($input['type'] === 'select') { - $input += ['empty' => true]; - } - if (!empty($input['options'])) { $input['empty'] ??= $this->getPlaceholder($field); if (empty($input['class']) && !$config['select2']) {