From a548e7c4be85ac3edf524984256a9531f4ec9abc Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 17 Dec 2020 07:07:54 +0000 Subject: [PATCH] Fix warning "supplied key param cannot be coerced into a public key" --- src/Util/HTTPSignature.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util/HTTPSignature.php b/src/Util/HTTPSignature.php index 1ede55088..59f4448b6 100644 --- a/src/Util/HTTPSignature.php +++ b/src/Util/HTTPSignature.php @@ -544,7 +544,7 @@ class HTTPSignature $key = self::fetchKey($sig_block['keyId'], $actor); - if (empty($key)) { + if (empty($key) || empty($key['pubkey'])) { return false; }