From dd56ea3cb76ee8f4de1359cf699af977adbc7415 Mon Sep 17 00:00:00 2001 From: thibdrev Date: Sat, 3 Feb 2024 18:15:55 +0100 Subject: [PATCH] qual: phpstan for htdocs/core/class/openid.class.php (#27984) htdocs/core/class/openid.class.php 379 Method SimpleOpenID::GetOpenIDServer() should return string but returns false. htdocs/core/class/openid.class.php 525 Method SimpleOpenID::sendDiscoveryRequestToGetXRDS() should return string but returns false. --- htdocs/core/class/openid.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/openid.class.php b/htdocs/core/class/openid.class.php index 237acf17f27..9e2c81b87be 100644 --- a/htdocs/core/class/openid.class.php +++ b/htdocs/core/class/openid.class.php @@ -359,7 +359,7 @@ class SimpleOpenID * Get openid server * * @param string $url Url to found endpoint - * @return string Endpoint + * @return string|false Endpoint, of false if error */ public function GetOpenIDServer($url = '') { @@ -485,7 +485,7 @@ class SimpleOpenID * Get XRDS response and set possible servers. * * @param string $url Url of endpoint to request - * @return string First endpoint OpenID server found. False if it failed to found. + * @return string|false First endpoint OpenID server found. False if it failed to found. */ public function sendDiscoveryRequestToGetXRDS($url = '') {