Skip to content

Commit 0b1068c

Browse files
authored
Merge pull request #428 from code23-barna/master
Fix issue: Column::callback(): Argument #1 ($columns) must be of type…
2 parents f4018c9 + 258ed09 commit 0b1068c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Column.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,15 @@ public static function raw($raw)
107107
/**
108108
* Make a callback function.
109109
*
110-
* @param $columns string The (comma separated) columns that should be retrieved from the database.
111-
* Is being translated directly into the `.sql`.
112-
* @param $callback Closure A callback that defines how the retrieved columns are processed.
113-
* @param $params Array Optional additional parameters that are passed to the given Closure.
114-
* @param $callbackName string Optional string that defines the 'name' of the column.
115-
* Leave empty to let livewire autogenerate a distinct value.
110+
* @param $columns Array|string The (comma separated) columns that should be retrieved from the database.
111+
* Is being translated directly into the `.sql`.
112+
* @param $callback Closure A callback that defines how the retrieved columns are processed.
113+
* @param $params Array Optional additional parameters that are passed to the given Closure.
114+
* @param $callbackName string Optional string that defines the 'name' of the column.
115+
* Leave empty to let livewire autogenerate a distinct value.
116116
*/
117117
public static function callback(
118-
string $columns,
118+
array|string $columns,
119119
Closure $callback,
120120
array $params = [],
121121
?string $callbackName = null

0 commit comments

Comments
 (0)