Skip to content

Commit

Permalink
Fixed a bug where if a column value was null, isset would kill it - h…
Browse files Browse the repository at this point in the history
…ave replaced with checking for the property
  • Loading branch information
Owen Melbourne committed May 30, 2018
1 parent 32158dc commit fb6412d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}

Expand Down

0 comments on commit fb6412d

Please sign in to comment.