Skip to content

Commit

Permalink
fix: Allow falsy values to be passed to addOption and to the command …
Browse files Browse the repository at this point in the history
…execution (#23)
  • Loading branch information
TristanPouliquen authored Oct 28, 2024
1 parent 2254a54 commit a90833d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function addOption(string $name, $value = null): self
foreach ((array) $value as $item) {
$this->cli .= " {$name}";

if ($item) {
if (null !== $item) {
$this->cli .= \sprintf('="%s"', $item);
}
}
Expand Down

0 comments on commit a90833d

Please sign in to comment.