From db4e874660d1f1fa39074b7791dfb16e41782e4f Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Tue, 3 Oct 2023 16:18:37 +0900 Subject: [PATCH] Fix incorrect type declaration in XMLRPC parser --- common/framework/parsers/XMLRPCParser.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/framework/parsers/XMLRPCParser.php b/common/framework/parsers/XMLRPCParser.php index 63d9eb479..df98a5de8 100644 --- a/common/framework/parsers/XMLRPCParser.php +++ b/common/framework/parsers/XMLRPCParser.php @@ -11,15 +11,15 @@ class XMLRPCParser * Load an XML file. * * @param string $content - * @return object|false + * @return ?array */ - public static function parse(string $content) + public static function parse(string $content): ?array { // Load the XML content. $xml = simplexml_load_string($content); if ($xml === false) { - return false; + return null; } // Loop over the list of parameters.