1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 08:32:56 +00:00

Fix disk_free_space being called even when not available, fixes #10936

This commit is contained in:
Jordi Boggiano 2022-07-13 10:35:32 +02:00
parent f600ea46c7
commit a481dfce3f
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
3 changed files with 7 additions and 3 deletions

View file

@ -386,7 +386,7 @@ class Application extends BaseApplication
Silencer::suppress();
try {
$composer = $this->getComposer(false, true);
if ($composer) {
if (null !== $composer && function_exists('disk_free_space')) {
$config = $composer->getConfig();
$minSpaceFree = 1024 * 1024;