From c9d9b5085ab5545c5223fb6cd20a67668e76da40 Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Thu, 30 Apr 2015 23:34:26 +0200 Subject: [PATCH] Replaced with for abandoned package as it reflects the intention of this feature better --- src/Composer/Command/ShowCommand.php | 2 +- src/Composer/Installer.php | 2 +- tests/Composer/Test/Fixtures/installer/abandoned-listed.test | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Composer/Command/ShowCommand.php b/src/Composer/Command/ShowCommand.php index d420ec55d..1ac67c711 100644 --- a/src/Composer/Command/ShowCommand.php +++ b/src/Composer/Command/ShowCommand.php @@ -302,7 +302,7 @@ EOT : null; $this->getIO()->writeError( - sprintf('Attention: This package is abandoned and no longer maintained.%s', $replacement) + sprintf('Attention: This package is abandoned and no longer maintained.%s', $replacement) ); } diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index f54fffc75..8b48e866a 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -264,7 +264,7 @@ class Installer $this->io->writeError( sprintf( - "Package %s is abandoned, you should avoid using it. %s.", + "Package %s is abandoned, you should avoid using it. %s.", $package->getPrettyName(), $replacement ) diff --git a/tests/Composer/Test/Fixtures/installer/abandoned-listed.test b/tests/Composer/Test/Fixtures/installer/abandoned-listed.test index 18f47732e..26861b1c6 100644 --- a/tests/Composer/Test/Fixtures/installer/abandoned-listed.test +++ b/tests/Composer/Test/Fixtures/installer/abandoned-listed.test @@ -26,8 +26,8 @@ install --EXPECT-OUTPUT-- Loading composer repositories with package information Installing dependencies (including require-dev) -Package a/a is abandoned, you should avoid using it. No replacement was suggested. -Package c/c is abandoned, you should avoid using it. Use b/b instead. +Package a/a is abandoned, you should avoid using it. No replacement was suggested. +Package c/c is abandoned, you should avoid using it. Use b/b instead. Writing lock file Generating autoload files