fix: PHP Warning in Wrappers.php

Implicitly marking parameter $getinfo as nullable is deprecated
This commit is contained in:
ljm42
2025-02-10 12:50:00 -07:00
parent 9d4f24629f
commit 2617dd83e6
+1 -1
View File
@@ -212,7 +212,7 @@ function my_logger($message, $logger='webgui') {
* @param array $getinfo Empty array passed by reference, will contain results of curl_getinfo and curl_error
* @return string|false $out The fetched content
*/
function http_get_contents(string $url, array $opts = [], array &$getinfo = NULL) {
function http_get_contents(string $url, array $opts = [], ?array &$getinfo = NULL) {
$ch = curl_init();
if(isset($getinfo)) {
curl_setopt($ch, CURLINFO_HEADER_OUT, TRUE);