We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 32aab07 + 5ce6c5d commit 41c65dfCopy full SHA for 41c65df
src/Services/DataTable.php
@@ -799,16 +799,13 @@ protected function buildFastExcelFile(): FastExcel
799
$dataTable->skipPaging();
800
801
if ($dataTable instanceof QueryDataTable) {
802
- // @phpstan-ignore-next-line
803
- function queryGenerator($dataTable): Generator
804
- {
+ $queryGenerator = function ($dataTable): Generator {
805
foreach ($dataTable->getFilteredQuery()->cursor() as $row) {
806
yield $row;
807
}
808
- }
+ };
809
810
811
- return new FastExcel(queryGenerator($dataTable));
+ return new FastExcel($queryGenerator($dataTable));
812
813
814
return new FastExcel($dataTable->toArray()['data']);
0 commit comments