1
0
Fork 0

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

pull/9555/head
Jordi Boggiano 2020-12-03 21:35:23 +01:00
parent 40ea194ef5
commit 3eb419d2d0
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 1 additions and 1 deletions

View File

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