Version 5.0.6

This commit is contained in:
Neo committed 2025-12-19 18:55:49 -08:00
1 parent a3a4a9ccbd
commit b89858b2ff
1214 files changed
+92828 -14859

No files matched your search

+3 -3
View File
@@ -149,14 +149,14 @@ class SimpleXML extends SimpleXMLElement
* Add Child
* Modified to support passing other data types (including multi-dimensional arrays and other \IPS\XML\SimpleXML objects) as values
*
* @param string $qualifiedName Element Name
* @param mixed $qualifiedName Element Name
* @param mixed $value Value
* @param string|null $namespace Namespace
* @return SimpleXMLElement|null
*@see <a href='http://www.php.net/manual/en/simplexmlelement.addchild.php'>SimpleXMLElement::addChild</a>
*/
public function addChild( string $qualifiedName, mixed $value=null, ?string $namespace=null ): null|static
{
public function addChild( mixed $qualifiedName, mixed $value=null, ?string $namespace=null ): null|static
{
/* Arrays are possibly numerically indexed, which XML won't have */
if( gettype( $qualifiedName ) === 'integer' )
{