From 26807b0e00a4dfffd7cd6e4587a2c496268b96b2 Mon Sep 17 00:00:00 2001 From: ADmad Date: Sun, 8 Sep 2024 16:24:27 +0530 Subject: [PATCH] Fix stan error --- src/Listener/ViewSearchListener.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();