mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
fix use var_export for default params in function (nulls and empty arrays broke templates)
This commit is contained in:
parent
d307c808a0
commit
803fd670cd
@ -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).')';
|
||||
|
Loading…
Reference in New Issue
Block a user