fix: do not escape env vars

This commit is contained in:
2025-08-17 14:14:37 +02:00
parent 5f6f5bf04b
commit 34e1b0b791

View File

@@ -57,7 +57,7 @@ final class Command implements Stringable
public function env(string $var, string|Stringable $value): static
{
$this->envs[$var] = escapeshellarg((string) $value);
$this->envs[$var] = $value;
return $this;
}
@@ -67,7 +67,7 @@ final class Command implements Stringable
public function envs(array $envs): static
{
foreach ($envs as $var => $value) {
$this->envs[$var] = escapeshellarg((string) $value);
$this->envs[$var] = $value;
}
return $this;