Remove object return type declaration for compatibility with PHP < 7.2

This commit is contained in:
Kijin Sung 2020-06-12 23:53:09 +09:00
parent eb2c9d0aed
commit f02c4aa4c4
2 changed files with 7 additions and 7 deletions

View file

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