Skip to content

Commit

Permalink
fix: return type need to be void
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <vitor@php.rio>
  • Loading branch information
vitormattos committed May 23, 2024
1 parent 138ad2f commit 601a98f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Service/InstallService.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,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) {
Expand Down Expand Up @@ -398,7 +398,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');
Expand Down

0 comments on commit 601a98f

Please sign in to comment.