diff --git a/CHANGELOG.md b/CHANGELOG.md index 56a3268..cffd20a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to `ssl-certificate` will be documented in this file +## 2.0.1 - 2021-03-30 + +- fix edge case when using serialized certificates + ## 2.0.0 - 2021-03-30 - require PHP 8+ diff --git a/src/SslCertificate.php b/src/SslCertificate.php index 81c07d4..7bf26cc 100644 --- a/src/SslCertificate.php +++ b/src/SslCertificate.php @@ -86,12 +86,12 @@ public function getOrganization(): string public function getFingerprint(): string { - return $this->fingerprint; + return $this->fingerprint ?? ''; } public function getFingerprintSha256(): string { - return $this->fingerprintSha256; + return $this->fingerprintSha256 ?? ''; } public function getAdditionalDomains(): array