summaryrefslogtreecommitdiffstats
path: root/gnupg-tests.patch
diff options
context:
space:
mode:
Diffstat (limited to 'gnupg-tests.patch')
-rw-r--r--gnupg-tests.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/gnupg-tests.patch b/gnupg-tests.patch
new file mode 100644
index 0000000..17a858c
--- /dev/null
+++ b/gnupg-tests.patch
@@ -0,0 +1,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);
+ }
+
+ /**