Skip to content

Commit e72336f

Browse files
committed
Update style value assignment to use render method
Implicit rule value conversion to string was removed in version 9.
1 parent 1465ed8 commit e72336f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Svg/Style.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function fromStyleSheets(AbstractTag $tag, $attributes) {
127127
if ($_selector === ".$_class") {
128128
/** @var \Sabberworm\CSS\Rule\Rule $_rule */
129129
foreach ($_decl->getRules() as $_rule) {
130-
$styles[$_rule->getRule()] = $_rule->getValue() . "";
130+
$styles[$_rule->getRule()] = $_rule->getValue()->render() . "";
131131
}
132132

133133
break 2;
@@ -139,7 +139,7 @@ public function fromStyleSheets(AbstractTag $tag, $attributes) {
139139
if ($_selector === $tag->tagName) {
140140
/** @var \Sabberworm\CSS\Rule\Rule $_rule */
141141
foreach ($_decl->getRules() as $_rule) {
142-
$styles[$_rule->getRule()] = $_rule->getValue() . "";
142+
$styles[$_rule->getRule()] = $_rule->getValue()->render() . "";
143143
}
144144

145145
break;

0 commit comments

Comments
 (0)