diff --git a/src/Listener/ViewSearchListener.php b/src/Listener/ViewSearchListener.php index 7cd619b..7376dd7 100644 --- a/src/Listener/ViewSearchListener.php +++ b/src/Listener/ViewSearchListener.php @@ -84,7 +84,8 @@ public function afterPaginate(EventInterface $event): void */ public function fields(): array { - $fields = $this->getConfig('fields'); + /** @var array $fields */ + $fields = $this->getConfig('fields', []); $config = $this->getConfig(); $schema = $this->_model()->getSchema();