We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90d7d9e commit 9750a8aCopy full SHA for 9750a8a
lib/Service/CrlService.php
@@ -35,11 +35,14 @@ private static function isValidReasonCode(int $reasonCode): bool {
35
36
public function revokeCertificate(
37
int $serialNumber,
38
- int $reasonCode = CRLReason::UNSPECIFIED->value,
+ ?int $reasonCode = null,
39
?string $reasonText = null,
40
?string $revokedBy = null,
41
?DateTime $invalidityDate = null,
42
): bool {
43
+ if ($reasonCode === null) {
44
+ $reasonCode = CRLReason::UNSPECIFIED->value;
45
+ }
46
if (!self::isValidReasonCode($reasonCode)) {
47
throw new \InvalidArgumentException("Invalid CRLReason code: {$reasonCode}");
48
}
0 commit comments