Include PHP information when showing Composer version verbosely (#11866)
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>pull/11868/head
parent
d7cdb28b28
commit
c0b8086af5
|
@ -383,6 +383,11 @@ class Application extends BaseApplication
|
|||
|
||||
$result = parent::doRun($input, $output);
|
||||
|
||||
if (true === $input->hasParameterOption(['--version', '-V'], true)) {
|
||||
$io->writeError(sprintf('<info>PHP</info> version <comment>%s</comment> (%s)', \PHP_VERSION, \PHP_BINARY));
|
||||
$io->writeError('Run the "diagnose" command to get more detailed diagnostics output.');
|
||||
}
|
||||
|
||||
// chdir back to $oldWorkingDir if set
|
||||
if (isset($oldWorkingDir) && '' !== $oldWorkingDir) {
|
||||
Silencer::call('chdir', $oldWorkingDir);
|
||||
|
|
Loading…
Reference in New Issue