Skip to content

Commit 057c9d9

Browse files
authored
Merge pull request #5744 from susanu/patch-11
Allow string for `values` / `options` parameter
2 parents afb9604 + 8de6bc3 commit 057c9d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/Library/CrudPanel/CrudFilter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ public function label($value)
328328
* For example, the dropdown, select2 and select2 filters let the user select
329329
* pre-determined values to filter with. This is how to set those values that will be picked up.
330330
*
331-
* @param array|function $value Key-value array with values for the user to pick from, or a function which also return a Key-value array.
331+
* @param array|string|function $value Key-value array with values for the user to pick from, or a function which also return a Key-value array.
332332
* @return CrudFilter
333333
*/
334334
public function values($value)
@@ -345,7 +345,7 @@ public function values($value)
345345
*
346346
* Alias of the values() method.
347347
*
348-
* @param array|function $value Key-value array with values for the user to pick from, or a function which also return a Key-value array.
348+
* @param array|string|function $value Key-value array with values for the user to pick from, or a function which also return a Key-value array.
349349
* @return CrudFilter
350350
*/
351351
public function options($value)

0 commit comments

Comments
 (0)