Skip to content

Commit

Permalink
Fix config support for new bin-compat value, refs #9959
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Jun 9, 2021
1 parent 3afa0a2 commit 2d54a27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Composer/Config.php
Expand Up @@ -315,9 +315,9 @@ public function get($key, $flags = 0)
case 'bin-compat':
$value = $this->getComposerEnv('COMPOSER_BIN_COMPAT') ?: $this->config[$key];

if (!in_array($value, array('auto', 'full'))) {
if (!in_array($value, array('auto', 'full', 'symlink'))) {
throw new \RuntimeException(
"Invalid value for 'bin-compat': {$value}. Expected auto, full"
"Invalid value for 'bin-compat': {$value}. Expected auto, full or symlink"
);
}

Expand Down

0 comments on commit 2d54a27

Please sign in to comment.