Skip to content

Commit 7ed9aa1

Browse files
committed
making sure documentation-surfaced content overwrites pattern-surfaced content
1 parent 50851f4 commit 7ed9aa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PatternLab/PatternData/Rules/PatternRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function run($depth, $ext, $path, $pathName, $name) {
101101
}
102102

103103
// if the pattern data store already exists make sure it is merged and overwrites this data
104-
$patternStoreData = (PatternData::checkOption($patternStoreKey)) ? array_replace_recursive(PatternData::getOption($patternStoreKey),$patternStoreData) : $patternStoreData;
104+
$patternStoreData = (PatternData::checkOption($patternStoreKey)) ? array_replace_recursive($patternStoreData, PatternData::getOption($patternStoreKey)) : $patternStoreData;
105105
PatternData::setOption($patternStoreKey, $patternStoreData);
106106

107107
}

0 commit comments

Comments
 (0)