1
0
Fork 0

Include PHP information when showing Composer version verbosely (#11866)

Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
pull/11868/head
Michael Newton 2024-03-01 02:14:41 -07:00 committed by GitHub
parent d7cdb28b28
commit c0b8086af5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -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);