From 2d25109aa346125e38d5136cbbe4b62e2ac7a034 Mon Sep 17 00:00:00 2001 From: the-djmaze <3752035+the-djmaze@users.noreply.github.com> Date: Tue, 27 Oct 2026 20:42:31 +0100 Subject: [PATCH] Use PHP8 Nullsafe operator --- snappymail/v/0.0.0/app/libraries/snappymail/pgp/pecl.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/snappymail/pgp/pecl.php b/snappymail/v/0.0.0/app/libraries/snappymail/pgp/pecl.php index 9e0d1e31c..89f72b72a 100644 --- a/snappymail/v/0.0.0/app/libraries/snappymail/pgp/pecl.php +++ b/snappymail/v/0.0.0/app/libraries/snappymail/pgp/pecl.php @@ -50,8 +50,8 @@ class PECL implements \SnappyMail\PGP\PGPInterface function __destruct() { - $this->GnuPG->cleardecryptkeys(); - $this->GnuPG->clearsignkeys(); + $this->GnuPG?->cleardecryptkeys(); + $this->GnuPG?->clearsignkeys(); } public static function isSupported(): bool