Skip to content

Commit 54cd86f

Browse files
committed
fix(crl): correct type hints for Psalm
- Use CRLReason enum instead of int in Revoke command - Fix docblock to use full namespace for Crl entity Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 2021aca commit 54cd86f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Command/Crl/Revoke.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
145145
try {
146146
$success = $this->crlService->revokeCertificate(
147147
$serialNumber,
148-
$reasonCode,
148+
$reason,
149149
$reasonText,
150150
'cli-admin'
151151
);

lib/Service/CrlService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function revokeUserCertificates(
9292
/**
9393
* Revoke a list of certificates
9494
*
95-
* @param array<Crl> $certificates Array of Crl entities
95+
* @param array<\OCA\Libresign\Db\Crl> $certificates Array of Crl entities
9696
* @param CRLReason $reason Revocation reason
9797
* @param string|null $reasonText Optional text describing the reason
9898
* @param string|null $revokedBy Who is revoking the certificates

0 commit comments

Comments
 (0)