diff --git a/src/Composer/Factory.php b/src/Composer/Factory.php index 07211165c..485345c67 100644 --- a/src/Composer/Factory.php +++ b/src/Composer/Factory.php @@ -85,7 +85,7 @@ class Factory // select first dir which exists of: $XDG_CONFIG_HOME/composer or ~/.composer foreach ($dirs as $dir) { - if (is_dir($dir)) { + if (Silencer::call('is_dir', $dir)) { return $dir; } }