From 58e243e5355698980b6ee3bd0d386969a740e5d6 Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Mon, 17 Feb 2025 22:02:14 +0100 Subject: [PATCH 1/2] Fix phpstan --- htdocs/core/lib/geturl.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/geturl.lib.php b/htdocs/core/lib/geturl.lib.php index bc105b30330..20d22d47b7c 100644 --- a/htdocs/core/lib/geturl.lib.php +++ b/htdocs/core/lib/geturl.lib.php @@ -52,7 +52,7 @@ function getURLContent($url, $postorget = 'GET', $param = '', $followlocation = dol_syslog("getURLContent postorget=".$postorget." URL=".$url." param=".$param); if (!function_exists('curl_init')) { - return array('curl_error_no' => 'PHP curl lib not available', 'curl_error_msg' => 'PHP curl library must be installed'); + return array('http_code' => 500, 'content' => '', 'curl_error_no' => 1, 'curl_error_msg' => 'PHP curl library must be installed'); } //setting the curl parameters. From 104f5a9dc82815e93a6dca63fe30de970a582062 Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Mon, 17 Feb 2025 22:02:14 +0100 Subject: [PATCH 2/2] Fix phpstan