Fix is_dir check to not fail on open_basedir restrictions, fixes #9541

main
Jordi Boggiano 4 years ago
parent 40ea194ef5
commit 3eb419d2d0
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -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;
}
}

Loading…
Cancel
Save