From 58da64a78245a2c855368346467d22b8eb0a9b41 Mon Sep 17 00:00:00 2001 From: Yuri Bachkov Date: Wed, 26 Feb 2020 18:00:06 +0200 Subject: [PATCH] Fixed notice in Grid/Column/Column Fixed notice: Trying to access array offset on value of type null at Grid/Column/Column.php:531 --- Grid/Column/Column.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Grid/Column/Column.php b/Grid/Column/Column.php index 3c61a150..b0496623 100644 --- a/Grid/Column/Column.php +++ b/Grid/Column/Column.php @@ -525,6 +525,10 @@ public function setData($data) */ public function getData() { + if (!\is_array($this->data)){ + return []; + } + $result = []; $hasValue = false; @@ -685,6 +689,10 @@ public function getFilterType() public function getFilters($source) { + if (!\is_array($this->data)) { + return []; + } + $filters = []; if ($this->hasOperator($this->data['operator'])) {