Revert "Merge tag 'v2.10.6'"
This reverts commit122ea4ab9e
, reversing changes made toc54a11e250
.
This commit is contained in:
@@ -10,12 +10,10 @@ namespace Shimmie2;
|
||||
class CommandBuilder
|
||||
{
|
||||
private string $executable;
|
||||
/** @var string[] */
|
||||
private array $args = [];
|
||||
/** @var string[] */
|
||||
public array $output;
|
||||
|
||||
public function __construct(string $executable)
|
||||
public function __construct(String $executable)
|
||||
{
|
||||
if (empty($executable)) {
|
||||
throw new \InvalidArgumentException("executable cannot be empty");
|
||||
@@ -63,7 +61,7 @@ class CommandBuilder
|
||||
|
||||
log_debug('command_builder', "Command `$cmd` returned $ret and outputted $output");
|
||||
|
||||
if ($fail_on_non_zero_return && (int)$ret !== (int)0) {
|
||||
if ($fail_on_non_zero_return&&(int)$ret!==(int)0) {
|
||||
throw new SCoreException("Command `$cmd` failed, returning $ret and outputting $output");
|
||||
}
|
||||
return $ret;
|
||||
|
Reference in New Issue
Block a user