Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

switched debug tag from print_r to var_dump

  • Loading branch information...
commit f4294a6066ab28fe11640e6af37134ba327e114c 1 parent 6b0cc16
@kriswallsmith kriswallsmith authored
View
4 lib/Twig/Extensions/Node/Debug.php
@@ -51,11 +51,11 @@ public function compile(Twig_Compiler $compiler)
->write("}\n")
->outdent()
->write("}\n")
- ->write("print_r(\$vars);\n")
+ ->write("var_dump(\$vars);\n")
;
} else {
$compiler
- ->write("print_r(")
+ ->write("var_dump(")
->subcompile($this->getNode('expr'))
->raw(");\n")
;
View
4 test/Twig/Tests/Node/DebugTest.php
@@ -47,7 +47,7 @@ public function getTests()
\$vars[\$key] = \$value;
}
}
- print_r(\$vars);
+ var_dump(\$vars);
}
EOF
);
@@ -57,7 +57,7 @@ public function getTests()
$tests[] = array($node, <<<EOF
if (\$this->env->isDebug()) {
- print_r((isset(\$context['foo']) ? \$context['foo'] : null));
+ var_dump((isset(\$context['foo']) ? \$context['foo'] : null));
}
EOF
);
Please sign in to comment.
Something went wrong with that request. Please try again.