diff --git a/src/Composer/DependencyResolver/Solver.php b/src/Composer/DependencyResolver/Solver.php index d303bc8b4..f7586da64 100644 --- a/src/Composer/DependencyResolver/Solver.php +++ b/src/Composer/DependencyResolver/Solver.php @@ -934,7 +934,7 @@ class Solver protected function literalFromId($id) { - $package = $this->pool->packageById($id); + $package = $this->pool->packageById(abs($id)); return new Literal($package, $id > 0); }