Jelajahi Sumber

Show best possible version in diagnose command

Jordi Boggiano 6 tahun lalu
induk
melakukan
76a2c63bf8
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/Composer/Command/DiagnoseCommand.php

+ 1 - 1
src/Composer/Command/DiagnoseCommand.php

@@ -156,7 +156,7 @@ EOT
             $this->outputResult($this->checkVersion($config));
         }
 
-        $io->write(sprintf('Composer version: <comment>%s</comment>', Composer::VERSION));
+        $io->write(sprintf('Composer version: <comment>%s</comment>', Composer::getVersion()));
 
         $platformOverrides = $config->get('platform') ?: array();
         $platformRepo = new PlatformRepository(array(), $platformOverrides);