mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 20:44:28 +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.
|
* Load an XML file.
|
||||||
*
|
*
|
||||||
* @param string $content
|
* @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.
|
// Load the XML content.
|
||||||
$xml = simplexml_load_string($content);
|
$xml = simplexml_load_string($content);
|
||||||
if ($xml === false)
|
if ($xml === false)
|
||||||
{
|
{
|
||||||
return false;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Loop over the list of parameters.
|
// Loop over the list of parameters.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue