fix use var_export for default params in function (nulls and empty arrays broke templates)

This commit is contained in:
klkvsk 2013-07-11 14:13:40 +04:00
parent d307c808a0
commit 803fd670cd

View File

@ -615,7 +615,7 @@ class Compiler {
} elseif(isset($params[ $param->getPosition() ])) {
$args[] = $params[ $param->getPosition() ];
} elseif($param->isOptional()) {
$args[] = $param->getDefaultValue();
$args[] = var_export($param->getDefaultValue(), true);
}
}
return "$function(".implode(", ", $args).')';