Skip to content

Commit 569497d

Browse files
committed
Added a default value for the ARG syntax + rename class with Global prefix
1 parent e3e773e commit 569497d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Dockerfile/Arg.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
{
99
public function __construct(
1010
private string $name,
11+
private string $defaultValue,
1112
) {
1213
}
1314

1415
public function __toString(): string
1516
{
16-
return sprintf('ARG %s', $this->name);
17+
return sprintf('ARG %s=%s', $this->name, $this->defaultValue);
1718
}
1819
}

src/PHP/ComposerConfig.php renamed to src/PHP/ComposerConfigGlobal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use Kiboko\Component\Dockerfile\Dockerfile;
88

9-
final readonly class ComposerConfig implements Dockerfile\LayerInterface, \Stringable
9+
final readonly class ComposerConfigGlobal implements Dockerfile\LayerInterface, \Stringable
1010
{
1111
public function __construct(
1212
private string $host,

0 commit comments

Comments
 (0)