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:
parent
f600ea46c7
commit
a481dfce3f
3 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue