Skip to content

Commit

Permalink
Option value could be of type ' int' in case it's defined as a default (
Browse files Browse the repository at this point in the history
  • Loading branch information
brusch authored Jul 13, 2021
1 parent 873650e commit 671dc35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parallelization.php
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,6 @@ protected function quoteOptionValue($value) {
* Validate whether a command option requires quoting or not, depending on its content.
*/
protected function isValueRequiresQuoting($value) : bool {
return 0 < preg_match('/[\s \\\\ \' " & | < > = ! @]/x', $value);
return 0 < preg_match('/[\s \\\\ \' " & | < > = ! @]/x', (string) $value);
}
}

0 comments on commit 671dc35

Please sign in to comment.