diff --git a/app/Lib/Tools/ProcessTool.php b/app/Lib/Tools/ProcessTool.php index 08b021e29..14eb8ce4c 100644 --- a/app/Lib/Tools/ProcessTool.php +++ b/app/Lib/Tools/ProcessTool.php @@ -1,7 +1,7 @@ stderr = $stderr; $this->stdout = $stdout; parent::__construct($message, $returnCode); @@ -48,13 +49,13 @@ class ProcessTool public static function execute(array $command, $cwd = null, $stderrToFile = false) { $descriptorSpec = [ - 1 => ["pipe", "w"], // stdout - 2 => ["pipe", "w"], // stderr + 1 => ['pipe', 'w'], // stdout + 2 => ['pipe', 'w'], // stderr ]; if ($stderrToFile) { self::logMessage('Running command ' . implode(' ', $command)); - $descriptorSpec[2] = ["file", self::LOG_FILE, 'a']; + $descriptorSpec[2] = ['file', self::LOG_FILE, 'a']; } // PHP older than 7.4 do not support proc_open with array, so we need to convert values to string manually