BaseElement: fix addAttributes() helper

This commit is contained in:
Thomas Gelf 2017-02-27 12:28:00 +01:00
parent 55d9f1e1c5
commit 94e29aec1d

View file

@ -48,7 +48,7 @@ abstract class BaseElement extends Html
*/
public function addAttributes($attributes)
{
$this->attributes = Attributes::wantAttributes($attributes);
$this->attributes()->add($attributes);
return $this;
}