-
-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Description
The exportFormat method is supposed to accept callable argument:
->exportFormat(fn ($a) => 'test')But when I try to do this, I am getting the following exception:
str_contains(): Argument #1 ($haystack) must be of type string, Closure given
laravel-datatables-export/src/Jobs/DataTableExportJob.php
Lines 255 to 258 in 399bff1
protected function wantsNumeric(Column $column): bool { return Str::contains($column->exportFormat, ['0', '#']); }
Metadata
Metadata
Assignees
Labels
No labels