Skip to content

Commit be9dc77

Browse files
committed
[rector] Rector fixes
1 parent faa5a69 commit be9dc77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Feature/Composer/Configuration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ public function getConfigTreeBuilder(): TreeBuilder
7676
if (isset($v['url']) && !isset($v['type'])) {
7777
$v['type'] = 'http-basic';
7878
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'];
79+
$v['url'] = substr((string) $v['url'], strpos((string) $v['url'], 'http-basic.') + strlen('http-basic.'));
80+
$v['username'] ??= 'token';
81+
$v['password'] ??= $v['token'];
8282
unset($v['token']);
8383
unset($v['value']);
8484
}

0 commit comments

Comments
 (0)