Skip to content

exportFormat not working with callable #70

@Seb33300

Description

@Seb33300

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

protected function wantsNumeric(Column $column): bool
{
return Str::contains($column->exportFormat, ['0', '#']);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions