Skip to content

Commit

Permalink
Fix is_dir check to not fail on open_basedir restrictions, fixes comp…
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Dec 3, 2020
1 parent 40ea194 commit 3eb419d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Composer/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected static function getHomeDir()

// 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;
}
}
Expand Down

0 comments on commit 3eb419d

Please sign in to comment.