/** * Merge conflicting packages into a RootPackage * * @param RootPackage $root */ protected function mergeConflicts(RootPackage $root) { $conflicts = $this->package->getConflicts(); if (!empty($conflicts)) { $root->setconflicts(array_merge($root->getConflicts(), $conflicts)); } }