Upgrade to 3.3.0
This commit is contained in:
@@ -56,11 +56,11 @@ class Xml
|
||||
/**
|
||||
* Creates an XML string from an array
|
||||
*
|
||||
* @param string $props The source array
|
||||
* @param string $name The name of the root element
|
||||
* @param boolean $head Include the xml declaration head or not
|
||||
* @param int $level The indendation level
|
||||
* @return string The XML string
|
||||
* @param string $props The source array
|
||||
* @param string $name The name of the root element
|
||||
* @param bool $head Include the xml declaration head or not
|
||||
* @param int $level The indendation level
|
||||
* @return string The XML string
|
||||
*/
|
||||
public static function create($props, string $name = 'root', bool $head = true, $level = 0): string
|
||||
{
|
||||
@@ -116,7 +116,7 @@ class Xml
|
||||
*
|
||||
* </code>
|
||||
*
|
||||
* @param string $string
|
||||
* @param string $string
|
||||
* @return string
|
||||
*/
|
||||
public static function decode(string $string = null): string
|
||||
@@ -136,8 +136,8 @@ class Xml
|
||||
*
|
||||
* </code>
|
||||
*
|
||||
* @param string $string
|
||||
* @param boolean $html True: convert to html first
|
||||
* @param string $string
|
||||
* @param bool $html True: convert to html first
|
||||
* @return string
|
||||
*/
|
||||
public static function encode(string $string = null, bool $html = true): string
|
||||
@@ -166,7 +166,7 @@ class Xml
|
||||
/**
|
||||
* Parses a XML string and returns an array
|
||||
*
|
||||
* @param string $xml
|
||||
* @param string $xml
|
||||
* @return array|false
|
||||
*/
|
||||
public static function parse(string $xml = null)
|
||||
|
Reference in New Issue
Block a user