Skip to content

Commit 1fc37ab

Browse files
committed
MAGETWO-52209: Inconsistent composer behaviour
1 parent 592c6d9 commit 1fc37ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/MagentoHackathon/Composer/Magento/DeployManager.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ private function getPackagePriority(Entry $package)
114114
$result = 100;
115115
$maxPriority = max(array_merge($this->sortPriority, [100, 101]));
116116

117-
if (isset($this->sortPriority[$package->getPackageName()])) {
118-
$result = $this->sortPriority[$package->getPackageName()];
119-
} elseif (isset($this->highPriority[$package->getPackageName()])) {
117+
if (isset($this->highPriority[$package->getPackageName()])) {
120118
$packagePriority = $this->highPriority[$package->getPackageName()];
121119
$result = intval($maxPriority) + intval($packagePriority);
120+
} elseif (isset($this->sortPriority[$package->getPackageName()])) {
121+
$result = $this->sortPriority[$package->getPackageName()];
122122
} elseif ($package->getDeployStrategy() instanceof Copy) {
123123
$result = 101;
124124
}

0 commit comments

Comments
 (0)