Skip to content

Conversation

@sallyx
Copy link
Contributor

@sallyx sallyx commented Jul 10, 2015

See tests for more info.

@sallyx sallyx closed this Jul 10, 2015
@sallyx sallyx reopened this Jul 10, 2015
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this work?

return implode('', array_map([$this, 'encode'], $var->attributes));

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or this

return array_reduce($var->attributes, function ($s, $attr) {
    return $s . $this->encode($attr);
});

@dg dg closed this in 3fe7105 Jul 12, 2015
@sallyx sallyx deleted the encoder-fix branch July 12, 2015 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants