Fix Formatters::valueToString when input is an array

Signed-off-by: davidarendsen <davidarendsen@hey.com>
This commit is contained in:
davidarendsen 2022-08-11 13:36:57 +00:00
commit 009b2f2d53
5 changed files with 17 additions and 15 deletions

View file

@ -25,7 +25,7 @@ class Reduce extends Base {
public function __toString()
{
return '|> reduce(fn: (r, accumulator) => ({' . implode(', ', $this->formatSettings($this->settings)) . '}), ' .
'identity: {' . Formatters::toFluxAssociativeArrayString($this->identity) . '}) ';
'identity: {' . Formatters::toFluxArrayString($this->identity) . '}) ';
}
protected function formatSettings(array $settings)