From d7414c14e9ec64bde1606253950a9e214e5c82b5 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Tue, 23 Apr 2024 20:41:40 -0300 Subject: [PATCH] fix: psalm errors Signed-off-by: Vitor Mattos --- lib/Service/Install/InstallService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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');