From a2de7d25ecce0534ebb22b0ea6e5ea247be96441 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 2 Jun 2020 23:41:10 -0400 Subject: [PATCH] Use expected return variable type in Network\Probe::detect --- src/Network/Probe.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Network/Probe.php b/src/Network/Probe.php index cef8ec64b..da6106a39 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; }