Skip to content

Commit

Permalink
Avoids PHP 7.4 notices on null (#1056)
Browse files Browse the repository at this point in the history
Avoids PHP 7.4 notices on null
  • Loading branch information
matesko authored Dec 17, 2024
1 parent 3e1b562 commit 522fc02
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Grid/Column/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,11 @@ public function setData($data)
public function getData()
{
$result = [];

// PHP 7.4 Notices
if (is_null($this->data)) {
return $result;
}

$hasValue = false;
if (isset($this->data['from']) && $this->data['from'] != $this::DEFAULT_VALUE) {
$result['from'] = $this->data['from'];
Expand Down

0 comments on commit 522fc02

Please sign in to comment.