"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Composer/Config.php" between
composer-2.1.2.tar.gz and composer-2.1.3.tar.gz

About: Composer helps you declare, manage, and install dependencies of PHP projects.

Config.php  (composer-2.1.2):Config.php  (composer-2.1.3)
skipping to change at line 318 skipping to change at line 318
return (int) $this->config['cache-ttl']; return (int) $this->config['cache-ttl'];
case 'home': case 'home':
$val = preg_replace('#^(\$HOME|~)(/|$)#', rtrim(getenv('HOME') ? : getenv('USERPROFILE'), '/\\') . '/', $this->config[$key]); $val = preg_replace('#^(\$HOME|~)(/|$)#', rtrim(getenv('HOME') ? : getenv('USERPROFILE'), '/\\') . '/', $this->config[$key]);
return rtrim($this->process($val, $flags), '/\\'); return rtrim($this->process($val, $flags), '/\\');
case 'bin-compat': case 'bin-compat':
$value = $this->getComposerEnv('COMPOSER_BIN_COMPAT') ?: $this-> config[$key]; $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( throw new \RuntimeException(
"Invalid value for 'bin-compat': {$value}. Expected auto , full" "Invalid value for 'bin-compat': {$value}. Expected auto , full or symlink"
); );
} }
return $value; return $value;
case 'discard-changes': case 'discard-changes':
if ($env = $this->getComposerEnv('COMPOSER_DISCARD_CHANGES')) { if ($env = $this->getComposerEnv('COMPOSER_DISCARD_CHANGES')) {
if (!in_array($env, array('stash', 'true', 'false', '1', '0' ), true)) { if (!in_array($env, array('stash', 'true', 'false', '1', '0' ), true)) {
throw new \RuntimeException( throw new \RuntimeException(
"Invalid value for COMPOSER_DISCARD_CHANGES: {$env}. Expected 1, 0, true, false or stash" "Invalid value for COMPOSER_DISCARD_CHANGES: {$env}. Expected 1, 0, true, false or stash"
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)