Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
ZF-11161 (revision 23905)
Browse files Browse the repository at this point in the history
Cast argument zendframework/zendframework#2 to string when calling DOMElement constructor
  • Loading branch information
b-durand committed Aug 7, 2011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Formatter/Xml.php
Expand Up @@ -155,7 +155,7 @@ public function format($event)
if($key == "message") {
$value = htmlspecialchars($value, ENT_COMPAT, $enc);
}
$elt->appendChild(new \DOMElement($key, $value));
$elt->appendChild(new \DOMElement($key, (string)$value));
}

$xml = $dom->saveXML();
Expand Down

0 comments on commit 27639dc

Please sign in to comment.