Skip to content

Commit 5296e39

Browse files
authored
Merge pull request #130 from yajra/patch1
Fix checking of custom export handler.
2 parents f5d02fa + 38153c4 commit 5296e39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Services/DataTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ protected function buildExcelFile()
433433
return $this->buildFastExcelFile();
434434
}
435435

436-
if (! is_subclass_of($this->exportClass, DataTablesExportHandler::class)) {
436+
if (! new $this->exportClass(collect()) instanceof DataTablesExportHandler) {
437437
$collection = $this->getAjaxResponseData();
438438

439439
return new $this->exportClass($this->convertToLazyCollection($collection));

0 commit comments

Comments
 (0)