Skip to content

Commit

Permalink
fix namespace on sodium_ functions
Browse files Browse the repository at this point in the history
  • Loading branch information
pavarnos committed Aug 15, 2018
1 parent 48b22a8 commit 0c527de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Threema/MsgApi/Encryptor/SodiumEncryptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function getDescription()
*/
public function bin2hex($binaryString)
{
return sodium_bin2hex($binaryString);
return \sodium_bin2hex($binaryString);
}

/**
Expand All @@ -96,7 +96,7 @@ public function bin2hex($binaryString)
*/
public function hex2bin($hexString, $ignore = null)
{
return sodium_hex2bin($hexString);
return \sodium_hex2bin($hexString);
}

/**
Expand Down

0 comments on commit 0c527de

Please sign in to comment.