Hi,
I added this function to the Volt compiler like this :
$compiler->addFunction('implode', function($glue, $array) {
return "implode($glue, $array)";
});
But each time I use it:
{% set numbers = implode(', ', c.Number) %}
{{ numbers }}
This it the result in the compiled file:
<?php $numbers = implode(', ', $c->Number, Array); ?>
<?php echo $numbers; ?>
As you can see there is an extra Array parameter added to the function arguments. This lead to an error of course. Any idea what I'm doing wrong here ?
Thank you.