Skip to content

Commit ce4c6d0

Browse files
committed
Don’t assume passed value lists should be merged.
Only do this with functions and only for RuleValueList arguments
1 parent 81fa2ce commit ce4c6d0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/Sabberworm/CSS/Value/ValueList.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ abstract class ValueList extends Value {
88
protected $sSeparator;
99

1010
public function __construct($aComponents = array(), $sSeparator = ',') {
11-
if ($aComponents instanceof ValueList && $aComponents->getListSeparator() === $sSeparator) {
12-
$aComponents = $aComponents->getListComponents();
13-
} else if (!is_array($aComponents)) {
11+
if (!is_array($aComponents)) {
1412
$aComponents = array($aComponents);
1513
}
1614
$this->aComponents = $aComponents;

0 commit comments

Comments
 (0)