Skip to content

Commit 0bf6982

Browse files
committed
Fix: swapping global / local data merge so local data overrides global data if both exist
1 parent 2dd2a67 commit 0bf6982

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PatternLab/PatternData/Rules/DocumentationRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function run($depth, $ext, $path, $pathName, $name) {
9696
$localData = PatternData::getOption($docPartial)["data"];
9797

9898
if ($localData){
99-
$data = array_replace_recursive($localData, $globalData);
99+
$data = array_replace_recursive($globalData, $localData);
100100
} else {
101101
$data = $globalData;
102102
}

0 commit comments

Comments
 (0)