Skip to content

Commit

Permalink
fix implode arg. order
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet authored and williamdes committed Oct 28, 2019
1 parent b35c21f commit 43c9e28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Components/Expression.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ public static function parse(Parser $parser, TokensList $list, array $options =
public static function build($component, array $options = array())
{
if (is_array($component)) {
return implode($component, ', ');
return implode(', ', $component);
}

if ($component->expr !== '' && ! is_null($component->expr)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Components/ExpressionArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,6 @@ public static function build($component, array $options = array())
$ret[] = $frag::build($frag);
}

return implode($ret, ', ');
return implode(', ', $ret);
}
}

0 comments on commit 43c9e28

Please sign in to comment.