From f8be10fe06fc961e35ca167dabf5b15c4a3a0fcb Mon Sep 17 00:00:00 2001 From: buckaroo-labs <46908086+buckaroo-labs@users.noreply.github.com> Date: Wed, 20 Dec 2023 18:18:46 -0800 Subject: [PATCH] Update User.php for PHP 8 --- src/SemanticScuttle/Service/User.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SemanticScuttle/Service/User.php b/src/SemanticScuttle/Service/User.php index 434e6b7..917c7c9 100644 --- a/src/SemanticScuttle/Service/User.php +++ b/src/SemanticScuttle/Service/User.php @@ -301,6 +301,8 @@ class SemanticScuttle_Service_User extends SemanticScuttle_DbService */ public function isPrivateKeyValid($privateKey) { + //2023-12-20 add line for PHP 8 Deprecated warning + if (is_null($privateKey)) return false; // check length of private key if (strlen($privateKey) == 32) { return true;