Skip to content

Commit

Permalink
fixed errors in asser() expression
Browse files Browse the repository at this point in the history
hmm why did this work in the first place?
  • Loading branch information
staabm committed Dec 1, 2017
1 parent f39a563 commit 8a97669
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Whoops/Handler/XmlResponseHandler.php
Expand Up @@ -67,7 +67,7 @@ public function contentType()
*/
private static function addDataToNode(\SimpleXMLElement $node, $data)
{
assert(is_array($data) || $node instanceof Traversable);
assert(is_array($data) || $data instanceof Traversable);

foreach ($data as $key => $value) {
if (is_numeric($key)) {
Expand Down Expand Up @@ -98,7 +98,7 @@ private static function addDataToNode(\SimpleXMLElement $node, $data)
*/
private static function toXml($data)
{
assert(is_array($data) || $node instanceof Traversable);
assert(is_array($data) || $data instanceof Traversable);

$node = simplexml_load_string("<?xml version='1.0' encoding='utf-8'?><root />");

Expand Down

0 comments on commit 8a97669

Please sign in to comment.