1
0
Fork 0

Ensure composer.json gets deleted after a dry run require, fixes #11747

pull/11762/head
Jordi Boggiano 2023-12-19 15:51:39 +01:00
parent 83f831b011
commit 3cfd9bf51b
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 4 additions and 0 deletions

View File

@ -349,6 +349,10 @@ EOT
}
throw $e;
} finally {
if ($input->getOption('dry-run') && $this->newlyCreated) {
@unlink($this->json->getPath());
}
$signalHandler->unregister();
}
}