Skip to content

Commit a90833d

Browse files
fix: Allow falsy values to be passed to addOption and to the command execution (#23)
1 parent 2254a54 commit a90833d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TestCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function addOption(string $name, $value = null): self
8989
foreach ((array) $value as $item) {
9090
$this->cli .= " {$name}";
9191

92-
if ($item) {
92+
if (null !== $item) {
9393
$this->cli .= \sprintf('="%s"', $item);
9494
}
9595
}

0 commit comments

Comments
 (0)