소스 검색

Fix the display of rules

Close #3483
Christophe Coevoet 10 년 전
부모
커밋
7fd9341464
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/Composer/Installer.php

+ 2 - 2
src/Composer/Installer.php

@@ -574,11 +574,11 @@ class Installer
                 if ($reason instanceof Rule) {
                 if ($reason instanceof Rule) {
                     switch ($reason->getReason()) {
                     switch ($reason->getReason()) {
                         case Rule::RULE_JOB_INSTALL:
                         case Rule::RULE_JOB_INSTALL:
-                            $this->io->write('    REASON: Required by root: '.$reason->getPrettyString());
+                            $this->io->write('    REASON: Required by root: '.$reason->getPrettyString($pool));
                             $this->io->write('');
                             $this->io->write('');
                             break;
                             break;
                         case Rule::RULE_PACKAGE_REQUIRES:
                         case Rule::RULE_PACKAGE_REQUIRES:
-                            $this->io->write('    REASON: '.$reason->getPrettyString());
+                            $this->io->write('    REASON: '.$reason->getPrettyString($pool));
                             $this->io->write('');
                             $this->io->write('');
                             break;
                             break;
                     }
                     }