Closed code23-barna closed 2 years ago
Column::callback(): Argument #1 ($columns) must be of type string, array given
In src/Column.php:118 you set the type to "string" when it should be Array|String
src/Column.php:118
To reproduce the issue use something like this in your columns() method:
columns()
Column::callback(['id', 'title'], function ($id, $title) { return $id.': '.$title; });
Error message:
Column::callback(): Argument #1 ($columns) must be of type string, array given
Issue:
In
src/Column.php:118
you set the type to "string" when it should be Array|String