Skip to content

Commit

Permalink
fix: run rector
Browse files Browse the repository at this point in the history
  • Loading branch information
datamweb committed Oct 1, 2024
1 parent ed5eb3a commit 42f1182
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/Encryption/Handlers/SodiumHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function encrypt($data, $params = null)
{
$this->parseParams($params);

if (empty($this->key)) {
if ($this->key === null || $this->key === '' || $this->key === '0') {
throw EncryptionException::forNeedsStarterKey();
}

Expand Down Expand Up @@ -73,7 +73,7 @@ public function decrypt($data, $params = null)
{
$this->parseParams($params);

if (empty($this->key)) {
if ($this->key === null || $this->key === '' || $this->key === '0') {
throw EncryptionException::forNeedsStarterKey();
}

Expand Down

0 comments on commit 42f1182

Please sign in to comment.