Fix is_dir check to not fail on open_basedir restrictions, fixes #9541
parent
40ea194ef5
commit
3eb419d2d0
|
@ -85,7 +85,7 @@ class Factory
|
||||||
|
|
||||||
// select first dir which exists of: $XDG_CONFIG_HOME/composer or ~/.composer
|
// select first dir which exists of: $XDG_CONFIG_HOME/composer or ~/.composer
|
||||||
foreach ($dirs as $dir) {
|
foreach ($dirs as $dir) {
|
||||||
if (is_dir($dir)) {
|
if (Silencer::call('is_dir', $dir)) {
|
||||||
return $dir;
|
return $dir;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue