diff --git a/src/DataGrid.php b/src/DataGrid.php index 680e855d..b44c6175 100644 --- a/src/DataGrid.php +++ b/src/DataGrid.php @@ -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;