MedicOneSystems / MedicOneSystems/livewire-datatables

Column::callback(): Argument #1 ($columns) must be of type string, array given

Open
#429 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
1.2k
Forks
257
PR merge metrics
No merged PRs in 30d

Description

In src/Column.php:118 you set the type to "string" when it should be Array|String

Raised a PR to fix it: https://github.com/MedicOneSystems/livewire-datatables/pull/428

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at src/Column.php:118 and inspect the callback argument type. Review pull request #428 to understand the proposed fix, then verify that passing an array no longer produces the reported type error and that string input remains supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
laravel, php
Domain
backend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.