Fix incorrect type hints

This commit is contained in:
Kijin Sung 2025-05-17 23:46:58 +09:00
parent 8c87d9ee1d
commit addf4d9972
2 changed files with 3 additions and 3 deletions

View file

@ -31,7 +31,7 @@ class DBQueryParser extends BaseParser
/** /**
* Parse a query. * Parse a query.
* *
* @param SimpleXMLElement $xml * @param \SimpleXMLElement $xml
* @param string $name * @param string $name
* @return object * @return object
*/ */
@ -248,7 +248,7 @@ class DBQueryParser extends BaseParser
/** /**
* Parse conditions. * Parse conditions.
* *
* @param SimpleXMLElement $parent * @param \SimpleXMLElement $parent
* @return array * @return array
*/ */
protected static function _parseConditions(\SimpleXMLElement $parent): array protected static function _parseConditions(\SimpleXMLElement $parent): array

View file

@ -33,7 +33,7 @@ class DBTableParser extends BaseParser
* @param string $content * @param string $content
* @return ?object * @return ?object
*/ */
public static function loadXML(string $filename = '', string $content = ''): object public static function loadXML(string $filename = '', string $content = ''): ?object
{ {
// Load the XML content. // Load the XML content.
if ($content) if ($content)