mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Remove object return type declaration for compatibility with PHP < 7.2
This commit is contained in:
parent
eb2c9d0aed
commit
f02c4aa4c4
2 changed files with 7 additions and 7 deletions
|
|
@ -11,15 +11,15 @@ class ModuleInfoParser
|
|||
* Load an XML file.
|
||||
*
|
||||
* @param string $filename
|
||||
* @return object
|
||||
* @return object|false
|
||||
*/
|
||||
public static function loadXML(string $filename): object
|
||||
public static function loadXML(string $filename)
|
||||
{
|
||||
// Load the XML file.
|
||||
$xml = simplexml_load_file($filename);
|
||||
if ($xml === false)
|
||||
{
|
||||
return new \stdClass;
|
||||
return false;
|
||||
}
|
||||
|
||||
// Get the current language.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue