diff --git a/lib/Service/Install/InstallService.php b/lib/Service/Install/InstallService.php index b0124e1237..d3acf72147 100644 --- a/lib/Service/Install/InstallService.php +++ b/lib/Service/Install/InstallService.php @@ -326,7 +326,7 @@ public function setResource(string $resource): self { public function installJava(?bool $async = false): void { $signatureEngine = $this->appConfig->getAppValue('signature_engine', 'jsignpdf'); if ($signatureEngine !== 'jsignpdf') { - return []; + return; } $this->setResource('java'); if ($async) { @@ -400,7 +400,7 @@ public function uninstallJava(): void { public function installJSignPdf(?bool $async = false): void { $signatureEngine = $this->appConfig->getAppValue('signature_engine', 'jsignpdf'); if ($signatureEngine !== 'jsignpdf') { - return []; + return; } if (!extension_loaded('zip')) { throw new RuntimeException('Zip extension is not available');