Skip to content

Commit 0d8f3bd

Browse files
committed
Fix PHP 5.3 compatibility
1 parent d7dae0d commit 0d8f3bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sabberworm/CSS/CSSList/CSSList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public function replace($oOldItem, $mNewItem) {
244244
if (is_array($mNewItem)) {
245245
array_splice($this->aContents, $iKey, 1, $mNewItem);
246246
} else {
247-
array_splice($this->aContents, $iKey, 1, [$mNewItem]);
247+
array_splice($this->aContents, $iKey, 1, array($mNewItem));
248248
}
249249
return true;
250250
}

0 commit comments

Comments
 (0)