mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Update parser classes
This commit is contained in:
parent
59f14d8a3f
commit
43c5da7818
3 changed files with 26 additions and 4 deletions
|
|
@ -15,10 +15,10 @@ class DBQueryParser
|
|||
* @param string $filename
|
||||
* @return object|false
|
||||
*/
|
||||
public static function loadXML($filename)
|
||||
public static function loadXML(string $filename)
|
||||
{
|
||||
// Load the XML file.
|
||||
$xml = simplexml_load_file($filename);
|
||||
$xml = simplexml_load_string(file_get_contents($filename));
|
||||
if ($xml === false)
|
||||
{
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue