Ensure composer.json gets deleted after a dry run require, fixes #11747
parent
83f831b011
commit
3cfd9bf51b
|
@ -349,6 +349,10 @@ EOT
|
|||
}
|
||||
throw $e;
|
||||
} finally {
|
||||
if ($input->getOption('dry-run') && $this->newlyCreated) {
|
||||
@unlink($this->json->getPath());
|
||||
}
|
||||
|
||||
$signalHandler->unregister();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue