Skip to content

Commit fa2e0d3

Browse files
committed
Calling empty on a boolean will return true, resulting in returning the default data, this is incorrect behaviour on the AbstractColumn
1 parent 2c97284 commit fa2e0d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Column/AbstractColumn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function transform($value = null, $context = null)
7070
$data = $this->options['data'];
7171
if (is_callable($data)) {
7272
$value = call_user_func($data, $context, $value);
73-
} elseif (empty($value)) {
73+
} elseif (null === $value) {
7474
$value = $data;
7575
}
7676

0 commit comments

Comments
 (0)