Skip to content

Commit 522fc02

Browse files
authored
Avoids PHP 7.4 notices on null (#1056)
Avoids PHP 7.4 notices on null
1 parent 3e1b562 commit 522fc02

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Grid/Column/Column.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,11 @@ public function setData($data)
526526
public function getData()
527527
{
528528
$result = [];
529-
529+
// PHP 7.4 Notices
530+
if (is_null($this->data)) {
531+
return $result;
532+
}
533+
530534
$hasValue = false;
531535
if (isset($this->data['from']) && $this->data['from'] != $this::DEFAULT_VALUE) {
532536
$result['from'] = $this->data['from'];

0 commit comments

Comments
 (0)