From 8cbacb27462ea116b32cd23b11ddb20ea307e1b5 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sat, 6 Jan 2018 18:25:05 +0100 Subject: [PATCH] Added casting --- helpers/userData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/userData.php b/helpers/userData.php index ef1841e..6dc1cc4 100644 --- a/helpers/userData.php +++ b/helpers/userData.php @@ -12,7 +12,7 @@ * @param Boolean $systemPath Optionnal, defines if system path is required instead of URL * @return String The full URL to the userdata file */ -function path_user_data($fileURI = "", $systemPath = false){ +function path_user_data(string $fileURI = "", bool $systemPath = false) : string { if(!$systemPath) return CS::get()->config->get("storage_url").$fileURI; else