Skip to content

Commit 620e4ac

Browse files
author
Pierre HUBERT
committed
Improved numbers_list_to_array casting.
1 parent 6c100fe commit 620e4ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

functions/requests.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ function check_post_parametres(array $varList) : bool {
3333
/**
3434
* Convert a list of numbers (anything with IDs) comma-separated to an array
3535
*
36-
* @param String $list The input list
37-
* @return Array The list of user / an empty list in case of errors
36+
* @param string $list The input list
37+
* @return array The list of user / an empty list in case of errors
3838
*/
39-
function numbers_list_to_array($list) : array {
39+
function numbers_list_to_array(string $list) : array {
4040
//Split the list into an array
4141
$array = explode(",", $list);
4242
$usersList = array();

0 commit comments

Comments
 (0)