- Quickfix on attributes
This commit is contained in:
parent
0d9db0470e
commit
362184f81f
|
@ -292,7 +292,7 @@ class UiElement implements \ArrayAccess, \Iterator, \JsonSerializable {
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if ( is_numeric($key) ) {
|
if ( is_numeric($key) ) {
|
||||||
$this->attributes[] = $value;
|
$this->attributes[$key] = $value;
|
||||||
}
|
}
|
||||||
elseif ( is_array($this->attributes[$key] ?? false) ) {
|
elseif ( is_array($this->attributes[$key] ?? false) ) {
|
||||||
$this->attributes[$key] = array_replace($value, $this->attributes[$key]);
|
$this->attributes[$key] = array_replace($value, $this->attributes[$key]);
|
||||||
|
|
Loading…
Reference in New Issue