mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Clean up missing or inconsistent types in remainder of parser classes
This commit is contained in:
parent
141ee7f7e1
commit
c01ba1d3cf
4 changed files with 20 additions and 20 deletions
|
|
@ -11,15 +11,15 @@ class DBQueryParser extends BaseParser
|
|||
* Load a query XML file.
|
||||
*
|
||||
* @param string $filename
|
||||
* @return object|false
|
||||
* @return ?object
|
||||
*/
|
||||
public static function loadXML(string $filename)
|
||||
public static function loadXML(string $filename): ?object
|
||||
{
|
||||
// Load the XML file.
|
||||
$xml = simplexml_load_string(file_get_contents($filename));
|
||||
if ($xml === false)
|
||||
{
|
||||
return false;
|
||||
return null;
|
||||
}
|
||||
|
||||
// Parse the query.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue