From 350c7cbb3a83f4cdba3799f0e684bf1a52b93a58 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 22 Oct 2012 10:27:12 +0200 Subject: [PATCH] Fix constraints shown in Problem output --- src/Composer/Installer.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index afc035515..b38b4496f 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -273,6 +273,7 @@ class Installer $request = new Request($pool); $constraint = new VersionConstraint('=', $this->package->getVersion()); + $constraint->setPrettyString($this->package->getPrettyVersion()); $request->install($this->package->getName(), $constraint); if ($this->update) { @@ -298,6 +299,7 @@ class Installer $version = $aliases[$package->getName()][$version]['alias_normalized']; } $constraint = new VersionConstraint('=', $version); + $constraint->setPrettyString($package->getPrettyVersion()); $request->install($package->getName(), $constraint); } } else { @@ -319,6 +321,7 @@ class Installer } $constraint = new VersionConstraint('=', $package->getVersion()); + $constraint->setPrettyString($package->getPrettyVersion()); $request->install($package->getName(), $constraint); }