diff --git a/src/CFPropertyList/CFPropertyList.php b/src/CFPropertyList/CFPropertyList.php index 68884f6..8090d66 100644 --- a/src/CFPropertyList/CFPropertyList.php +++ b/src/CFPropertyList/CFPropertyList.php @@ -409,11 +409,11 @@ protected function import(DOMNode $node, $parent) break; } - // Dictionaries need a key if ($parent instanceof CFDictionary) { + // Dictionaries need a key $parent->add($key, $value); - } // others don't - else { + } else { + // others don't $parent->add($value); } }