Skip to content

Commit d0f3a06

Browse files
committed
[rector] Rector fixes
1 parent 7538b2c commit d0f3a06

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
@@ -75,9 +75,9 @@ public function getConfigTreeBuilder(): TreeBuilder
7575
->always(function ($value) {
7676
if (isset($value['url']) && isset($value['token']) && !isset($value['type'])) {
7777
$value['type'] = 'http-basic';
78-
$value['url'] = substr($value['url'], strpos($value['url'], 'http-basic.') + strlen('http-basic.'));
79-
$value['username'] = $value['username'] ?? 'token';
80-
$value['password'] = $value['password'] ?? $value['token'];
78+
$value['url'] = substr((string) $value['url'], strpos((string) $value['url'], 'http-basic.') + strlen('http-basic.'));
79+
$value['username'] ??= 'token';
80+
$value['password'] ??= $value['token'];
8181
unset($value['token']);
8282
}
8383

0 commit comments

Comments
 (0)