We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faa5a69 commit be9dc77Copy full SHA for be9dc77
src/Feature/Composer/Configuration.php
@@ -76,9 +76,9 @@ public function getConfigTreeBuilder(): TreeBuilder
76
if (isset($v['url']) && !isset($v['type'])) {
77
$v['type'] = 'http-basic';
78
if ($v['type'] === 'http-basic') {
79
- $v['url'] = substr($v['url'], strpos($v['url'], 'http-basic.') + strlen('http-basic.'));
80
- $v['username'] = $v['username'] ?? 'token';
81
- $v['password'] = $v['password'] ?? $v['token'];
+ $v['url'] = substr((string) $v['url'], strpos((string) $v['url'], 'http-basic.') + strlen('http-basic.'));
+ $v['username'] ??= 'token';
+ $v['password'] ??= $v['token'];
82
unset($v['token']);
83
unset($v['value']);
84
}
0 commit comments