Skip to content

Commit

Permalink
Added a default value for the ARG syntax + rename class with Global p…
Browse files Browse the repository at this point in the history
…refix
  • Loading branch information
sebprt committed Jan 26, 2024
1 parent e3e773e commit 569497d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Dockerfile/Arg.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
{
public function __construct(
private string $name,
private string $defaultValue,
) {
}

public function __toString(): string
{
return sprintf('ARG %s', $this->name);
return sprintf('ARG %s=%s', $this->name, $this->defaultValue);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Kiboko\Component\Dockerfile\Dockerfile;

final readonly class ComposerConfig implements Dockerfile\LayerInterface, \Stringable
final readonly class ComposerConfigGlobal implements Dockerfile\LayerInterface, \Stringable
{
public function __construct(
private string $host,
Expand Down

0 comments on commit 569497d

Please sign in to comment.