We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcd3ce6 commit a03314eCopy full SHA for a03314e
src/ArrayToXml.php
@@ -2,10 +2,10 @@
2
3
namespace Spatie\ArrayToXml;
4
5
+use Exception;
6
use DOMElement;
7
use DOMDocument;
8
use DOMException;
-use Exception;
9
10
class ArrayToXml
11
{
@@ -77,7 +77,8 @@ public function toDom(): DOMDocument
77
return $this->document;
78
}
79
80
- protected function ensureValidDomProperties(array $domProperties) {
+ protected function ensureValidDomProperties(array $domProperties)
81
+ {
82
foreach ($domProperties as $key => $value) {
83
if (! property_exists($this->document, $key)) {
84
throw new Exception($key.' is not a valid property of DOMDocument');
0 commit comments