Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue: Column::callback(): Argument #1 ($columns) must be of type… #428

Merged
merged 1 commit into from
Mar 23, 2022

Conversation

code23-barna
Copy link
Contributor

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

@code23-barna
Copy link
Contributor Author

To reproduce the issue use something like this in your columns() method:

 Column::callback(['id', 'title'], function ($id, $title) {
    return $id.': '.$title;
});

@thyseus thyseus merged commit 0b1068c into MedicOneSystems:master Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants