From fb6412dedc923d20453b4686761a627049d38f51 Mon Sep 17 00:00:00 2001 From: Owen Melbourne Date: Wed, 30 May 2018 13:36:27 +0100 Subject: [PATCH] Fixed a bug where if a column value was null, isset would kill it - have replaced with checking for the property --- app/Table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Table.php b/app/Table.php index 6632087..95b45ba 100644 --- a/app/Table.php +++ b/app/Table.php @@ -136,7 +136,7 @@ private function cleanseRows(Collection $rows): Collection foreach ($rows as $i => $row) { foreach ($this->columns as $column) { - if (!isset($row->{$column->getName()})) { + if (!property_exists($row, $column->getName())) { throw new Exception('We cannot find `' . $column->getName() . '` in the `' . $this->name . '` table.'); }