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 f15caa9 commit 312d50eCopy full SHA for 312d50e
src/PHP/ComposerConfigGlobal.php
@@ -10,18 +10,15 @@
10
{
11
public function __construct(
12
private string $host,
13
- private string $token,
+ private string $tokenArgument,
14
) {
15
}
16
17
public function __toString(): string
18
19
- return (string) new Dockerfile\Run(sprintf(
20
- <<<'RUN'
21
- composer config --global %s %s
22
- RUN,
23
- $this->host,
24
- $this->token,
25
- ));
+ return (string) new Dockerfile\Run(<<<"RUN"
+ composer config --global {$this->host} \${{$this->tokenArgument}}
+ RUN,
+ );
26
27
0 commit comments