Browse Source

Ignore eval warning.

8.x-1.x 8.x-1.5
Chi 8 years ago
parent
commit
f3c8ec7bc7
  1. 2
      src/TwigExtension.php

2
src/TwigExtension.php

@ -278,7 +278,9 @@ class TwigExtension extends \Twig_Extension {
*/ */
public function phpFilter($code) { public function phpFilter($code) {
ob_start(); ob_start();
// @codingStandardsIgnoreStart
print eval($code); print eval($code);
// @codingStandardsIgnoreEnd
$output = ob_get_contents(); $output = ob_get_contents();
ob_end_clean(); ob_end_clean();
return $output; return $output;

Loading…
Cancel
Save