Add type hints and use class constants where applicable in Rhymix Framework

This commit is contained in:
Kijin Sung 2023-10-03 02:33:24 +09:00
parent 78f7942e40
commit b6e8d41be8
11 changed files with 138 additions and 128 deletions

View file

@ -14,7 +14,7 @@ abstract class BaseParser
* @param bool $normalize
* @return array
*/
protected static function _getAttributes(\SimpleXMLElement $element, $normalize = true): array
protected static function _getAttributes(\SimpleXMLElement $element, bool $normalize = true): array
{
$result = array();
foreach ($element->attributes() as $key => $val)