From 8ab9255d3e07f7aeb7ff605f2b03473a047bd5b4 Mon Sep 17 00:00:00 2001 From: Chi Date: Sat, 29 Apr 2017 21:12:07 +0300 Subject: [PATCH] Fixed dumpep argument. --- src/TwigExtension.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TwigExtension.php b/src/TwigExtension.php index d445642..7d74e50 100644 --- a/src/TwigExtension.php +++ b/src/TwigExtension.php @@ -350,10 +350,10 @@ class TwigExtension extends \Twig_Extension { /** * Dumps information about variables. */ - public function drupalDump() { + public function drupalDump($var) { $var_dumper = '\Symfony\Component\VarDumper\VarDumper'; if (class_exists($var_dumper)) { - call_user_func($var_dumper . '::dump', func_get_args()); + call_user_func($var_dumper . '::dump', $var); } else { trigger_error('Could not dump the variable because symfony/var-dumper component is not installed.', E_USER_WARNING);