We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27e52ac commit ab28796Copy full SHA for ab28796
src/HtmlBuilder.php
@@ -87,7 +87,7 @@ public function attributes($attributes)
87
$html = [];
88
89
foreach ((array)$attributes as $key => $value) {
90
- $element = $this->attributeElement($key, $value);
+ $element = is_numeric($key) ? $key : $this->attributeElement($key, $value);
91
92
if (empty($element)) {
93
continue;
@@ -109,10 +109,6 @@ public function attributes($attributes)
109
*/
110
protected function attributeElement($key, $value)
111
{
112
- if (is_numeric($key)) {
113
- return $value;
114
- }
115
-
116
// Treat boolean attributes as HTML properties
117
if (is_bool($value) && $key !== 'value') {
118
return $value ? $key : '';
0 commit comments