diff --git a/src/Composer/Package/AliasPackage.php b/src/Composer/Package/AliasPackage.php index b302868ee..5624cc9ea 100644 --- a/src/Composer/Package/AliasPackage.php +++ b/src/Composer/Package/AliasPackage.php @@ -254,6 +254,6 @@ class AliasPackage extends BasePackage } public function __toString() { - return $this->aliasOf->__toString(); + return parent::__toString().' (alias of '.$this->aliasOf->getVersion().')'; } }