Skip to content

Commit

Permalink
* ibexa4 : FIX Symfony\Component\Process\Process::__construct(): Argu…
Browse files Browse the repository at this point in the history
…ment #1 ($command) must be of type array
  • Loading branch information
mohamed-larbi-jebari committed May 11, 2023
1 parent 3519ff7 commit 7de75c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct(string $jar)
*/
protected function run($command): string
{
$shellCommand = sprintf('java -Dpdfbox.fontcache=/tmp -jar %s %s', $this->jar, $command);
$shellCommand = [sprintf('java -Dpdfbox.fontcache=/tmp -jar %s %s', $this->jar, $command)];

$process = new Process($shellCommand);
$process->setWorkingDirectory(__DIR__.'/../../../');
Expand Down

0 comments on commit 7de75c1

Please sign in to comment.