From: Hypolite Petovan Date: Wed, 3 Jun 2020 03:41:10 +0000 (-0400) Subject: Use expected return variable type in Network\Probe::detect X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a2de7d25ecce0534ebb22b0ea6e5ea247be96441;p=friendica.git Use expected return variable type in Network\Probe::detect --- diff --git a/src/Network/Probe.php b/src/Network/Probe.php index cef8ec64b2..da6106a39a 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -674,7 +674,7 @@ class Probe $addr = $uri; } else { Logger::log("Uri ".$uri." was not detectable", Logger::DEBUG); - return false; + return []; } $webfinger = false; @@ -716,7 +716,7 @@ class Probe return self::feed($uri); } - $result = false; + $result = []; Logger::info("Probing", ['uri' => $uri]); @@ -767,6 +767,7 @@ class Probe $result["baseurl"] = substr($result["url"], 0, $pos).$host; } } + return $result; }