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.'); }