From 99943031eb135ae2ec0a337bb73322b49b51ad8b Mon Sep 17 00:00:00 2001 From: Dominik Grothaus Date: Fri, 6 Mar 2020 14:55:15 +0100 Subject: [PATCH] Fix reusage of reference for unknown nodes The reference to $output was overwritten by nodes not covered by the switch construct. Example to test: ```xml ``` --- LSS/XML2Array.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LSS/XML2Array.php b/LSS/XML2Array.php index ad5dafa..484ca00 100644 --- a/LSS/XML2Array.php +++ b/LSS/XML2Array.php @@ -157,6 +157,8 @@ protected static function &convert($node, $callback = null) { $output[static::$prefix_attributes.'attributes'] = $a; } break; + default: + $output = ''; } return $output; }