summaryrefslogtreecommitdiffstats
path: root/gnupg-tests.patch
blob: 17a858c1edb5d6db3a289f9e26b8c078fd52f1c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From 2a5bc513c6ae065ef43bda71b321bce1b318f03e Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Tue, 8 Apr 2025 14:12:09 +0200
Subject: [PATCH] fix tests with  5.6

---
 tests/gnupgt.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/gnupgt.inc b/tests/gnupgt.inc
index 2b8aa08..7b06a0a 100644
--- a/tests/gnupgt.inc
+++ b/tests/gnupgt.inc
@@ -75,7 +75,7 @@ class gnupgt {
         self::reset_key();
 
         $gpg = self::create_instance();
-        $gpg->import($privkey ?? $testkey);
+        $gpg->import(is_null($privkey) ? $testkey : $privkey);
     }
 
     /**