Security update for Core, with self-updated composer
[yaffs-website] / vendor / consolidation / output-formatters / src / Formatters / XmlFormatter.php
index 05533f221dacf589e7ea4d6e973c01828593b139..85b4e37e920bc21b6b98f86bdfe2d3dc82a24e55 100644 (file)
@@ -51,6 +51,9 @@ class XmlFormatter implements FormatterInterface, ValidDataTypesInterface
         if ($structuredData instanceof DomDataInterface) {
             return $structuredData->getDomData();
         }
+        if ($structuredData instanceof \ArrayObject) {
+            return $structuredData->getArrayCopy();
+        }
         if (!is_array($structuredData)) {
             throw new IncompatibleDataException(
                 $this,