Skip to content

Commit 671dc35

Browse files
authored
Option value could be of type ' int' in case it's defined as a default (#51)
1 parent 873650e commit 671dc35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Parallelization.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,6 @@ protected function quoteOptionValue($value) {
560560
* Validate whether a command option requires quoting or not, depending on its content.
561561
*/
562562
protected function isValueRequiresQuoting($value) : bool {
563-
return 0 < preg_match('/[\s \\\\ \' " & | < > = ! @]/x', $value);
563+
return 0 < preg_match('/[\s \\\\ \' " & | < > = ! @]/x', (string) $value);
564564
}
565565
}

0 commit comments

Comments
 (0)