Skip to content

Commit 8dd060a

Browse files
committed
Minor: Update parameter type to callable for column filters in SortableTable::set_column_filter
1 parent 132e7d5 commit 8dd060a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

public/main/inc/lib/sortable_table.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -978,9 +978,9 @@ public function get_sortable_table_param_string()
978978
* Add a filter to a column. If another filter was already defined for the
979979
* given column, it will be overwritten.
980980
*
981-
* @param int $column The number of the column
982-
* @param string $function The name of the filter-function. This should be a
983-
* function wich requires 1 parameter and returns the filtered value.
981+
* @param int $column The number of the column
982+
* @param callable $function The name of the filter-function. This should be a
983+
* function wich requires 1 parameter and returns the filtered value.
984984
*/
985985
public function set_column_filter($column, $function)
986986
{

0 commit comments

Comments
 (0)