- Quickfix on attributes

This commit is contained in:
Dave Mc Nicoll 2021-10-19 12:39:49 +00:00
parent 0d9db0470e
commit 362184f81f
1 changed files with 1 additions and 1 deletions

View File

@ -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]);