From 26042494f9913dfb9ccb318357323d37bcad42c4 Mon Sep 17 00:00:00 2001 From: Tien Date: Thu, 2 Jan 2020 13:44:07 -0500 Subject: [PATCH] minor fix --- src/Scrypt.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Scrypt.php b/src/Scrypt.php index 5e723f7..8d16774 100644 --- a/src/Scrypt.php +++ b/src/Scrypt.php @@ -24,7 +24,7 @@ public function __construct($builder) { parent::__construct('SCRYPT', 0, 8, $builder); - if (!is_null($builder->getKey()) || strlen($builder->getKey()) === 0) { + if (is_null($builder->getKey()) || strlen($builder->getKey()) === 0) { throw new \InvalidArgumentException('A non-empty key is required for Scrypt'); }