Fix incorrect type declaration in XMLRPC parser

This commit is contained in:
Kijin Sung 2023-10-03 16:18:37 +09:00
parent 57d7821bcc
commit db4e874660

View file

@ -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.