Skip to content

Commit 7bf1d48

Browse files
committed
Add support for secureMixin in XML
1 parent 27ff23b commit 7bf1d48

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Frame.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,13 @@ public function getMixins(): array
126126
$mixins = (string) $this->xmlElement->attributes()['mixin'] ?? '';
127127
$mixins = str_replace(' ', '', $mixins);
128128

129-
return $mixins === '' ? [] : explode(',', $mixins);
129+
$mixins = $mixins === '' ? [] : explode(',', $mixins);
130+
131+
$secureMixins = (string) $this->xmlElement->attributes()['secureMixin'] ?? '';
132+
$secureMixins = str_replace(' ', '', $secureMixins);
133+
$secureMixins = $secureMixins === '' ? [] : explode(',', $secureMixins);
134+
135+
return array_unique(array_merge($mixins, $secureMixins));
130136
}
131137

132138
public function getInherits(): array

0 commit comments

Comments
 (0)