We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de5f626 commit 1e44c13Copy full SHA for 1e44c13
src/Cmd/CmdBuilder.php
@@ -11,7 +11,6 @@
11
12
use Toolkit\Stdlib\Str;
13
use function sprintf;
14
-use function strpos;
15
16
/**
17
* class CmdBuilder
@@ -93,14 +92,14 @@ public function addf(string $format, ...$a): self
93
92
}
94
95
96
- * @param string|int $arg
97
- * @param bool $isOk
+ * @param string|int $arg
+ * @param bool|int|string $ifExpr
98
*
99
* @return $this
100
*/
101
- public function addIf($arg, bool $isOk): self
+ public function addIf($arg, $ifExpr): self
102
{
103
- if ($isOk) {
+ if ($ifExpr) {
104
$this->args[] = $arg;
105
106
0 commit comments