Skip to content

Commit 49c510c

Browse files
refactor: remove unnecessary nullable type from Password
- getRevocationErrorMessage() now accepts non-nullable CrlValidationStatus - Status is always present and typed as enum (never null) from CrlRevocationChecker - Reflects contract that certificate data always has validated CRL status Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 91a6f01 commit 49c510c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Service/IdentifyMethod/SignatureMethod/Password.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ private function logRevocationBlockedSigning(CrlValidationStatus $status): void
7070
]);
7171
}
7272

73-
private function getRevocationErrorMessage(?CrlValidationStatus $status): string {
73+
private function getRevocationErrorMessage(CrlValidationStatus $status): string {
7474
return match ($status) {
7575
CrlValidationStatus::URLS_INACCESSIBLE => $this->identifyService->getL10n()->t('Cannot reach the certificate revocation service. Signing is not allowed.'),
7676
CrlValidationStatus::VALIDATION_ERROR => $this->identifyService->getL10n()->t('An error occurred during certificate validation. Signing is not allowed.'),

0 commit comments

Comments
 (0)