mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix incorrect type declaration in XMLRPC parser
This commit is contained in:
parent
57d7821bcc
commit
db4e874660
1 changed files with 3 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue