Closed code23-barna closed 2 years ago
Thanks a lot for reporting this error.
I would prefer this solution: https://github.com/MedicOneSystems/livewire-datatables/pull/433/files Could you please check if this PR solves your issue ?
Hi @thyseus , if i change it to 'callable' it is giving me the error:
Mediconesystems\LivewireDatatables\Column::callback(): Argument #2 ($callback) must be of type callable, string given, called in
Ok, i see. So will merge your solution instead of mine.
Error message:
Mediconesystems\LivewireDatatables\Column::callback(): Argument #2 ($callback) must be of type Closure, string given
Issue:
In src/Column.php:119 you set the type to "Closure" when it should be Closure|string
Steps to reproduce:
Add something like this in your columns() method: