Skip to content

Commit f438326

Browse files
committed
fix: psalm issues
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent cac434d commit f438326

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/Handler/SignEngine/TSA.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,9 @@ private function decodeWithCache(string $asn1Data): array {
451451
}
452452

453453
$decodedResult = ASN1::decodeBER($asn1Data);
454+
if ($decodedResult === null) {
455+
$decodedResult = [];
456+
}
454457

455458
if (count(self::$asn1DecodingCache) >= self::CACHE_SIZE_LIMIT) {
456459
array_shift(self::$asn1DecodingCache);

0 commit comments

Comments
 (0)