From 362184f81f2c681275b63be3d374cea5a8484dff Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Tue, 19 Oct 2021 12:39:49 +0000 Subject: [PATCH] - Quickfix on attributes --- src/Common/UiElement.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Common/UiElement.php b/src/Common/UiElement.php index 982033a..f130a4c 100644 --- a/src/Common/UiElement.php +++ b/src/Common/UiElement.php @@ -292,7 +292,7 @@ class UiElement implements \ArrayAccess, \Iterator, \JsonSerializable { default: if ( is_numeric($key) ) { - $this->attributes[] = $value; + $this->attributes[$key] = $value; } elseif ( is_array($this->attributes[$key] ?? false) ) { $this->attributes[$key] = array_replace($value, $this->attributes[$key]);