Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit 7c56b73

Browse files
committed
make sure a pattern is only referenced once in a lineage
1 parent d74913b commit 7c56b73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/lib/PatternLab/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ protected function gatherLineages() {
433433

434434
// if a file doesn't exist it assumes it's a pseudo-pattern and will use the last lineage found
435435
if (file_exists(__DIR__.$this->sp.$filename.".mustache")) {
436-
$foundLineages = $this->getLineage($filename);
436+
$foundLineages = array_unique($this->getLineage($filename));
437437
}
438438

439439
if (count($foundLineages) > 0) {

0 commit comments

Comments
 (0)