Skip to content

Commit

Permalink
Fixed callback argument of DataGrid::setColumnsSummary(), fixes #801
Browse files Browse the repository at this point in the history
  • Loading branch information
paveljanda committed Jul 5, 2019
1 parent 854d996 commit 71a8ab3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/DataGrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -2978,10 +2978,6 @@ public function setColumnsSummary(array $columns, ?callable $rowCallback = null)
);
}

if ($rowCallback !== null) {
throw new InvalidArgumentException('Row summary callback must be callable');
}

$this->columnsSummary = new ColumnsSummary($this, $columns, $rowCallback);

return $this->columnsSummary;
Expand Down

0 comments on commit 71a8ab3

Please sign in to comment.