From 0c527de7429b528a43a6a2f6069f28946363f6c7 Mon Sep 17 00:00:00 2001 From: Steve Pavarno Date: Wed, 15 Aug 2018 17:26:43 +1200 Subject: [PATCH] fix namespace on sodium_ functions --- CHANGELOG.md | 5 +++++ src/Threema/MsgApi/Encryptor/SodiumEncryptor.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d6381b4..8b27db8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ See README.md for info about version numbering. Follows https://keepachangelog.com/en/1.0.0/ +## 2.2.2 - 2018-08-15 +### Changed +- Split calculateMac out of connection class to remove duplication +- phpstan fixes + ## 2.2.1 - 2018-08-15 ### Changed - Moved internal Constants class diff --git a/src/Threema/MsgApi/Encryptor/SodiumEncryptor.php b/src/Threema/MsgApi/Encryptor/SodiumEncryptor.php index e7642c9..0555fa8 100644 --- a/src/Threema/MsgApi/Encryptor/SodiumEncryptor.php +++ b/src/Threema/MsgApi/Encryptor/SodiumEncryptor.php @@ -81,7 +81,7 @@ public function getDescription() */ public function bin2hex($binaryString) { - return sodium_bin2hex($binaryString); + return \sodium_bin2hex($binaryString); } /** @@ -96,7 +96,7 @@ public function bin2hex($binaryString) */ public function hex2bin($hexString, $ignore = null) { - return sodium_hex2bin($hexString); + return \sodium_hex2bin($hexString); } /**