diff --git a/Hasher/MessageDigestPasswordHasher.php b/Hasher/MessageDigestPasswordHasher.php index 357a26b..d89c7f9 100644 --- a/Hasher/MessageDigestPasswordHasher.php +++ b/Hasher/MessageDigestPasswordHasher.php @@ -41,7 +41,7 @@ public function __construct(string $algorithm = 'sha512', bool $encodeHashAsBase try { $this->hashLength = \strlen($this->hash('', 'salt')); - } catch (\LogicException $e) { + } catch (\LogicException) { // ignore algorithm not supported } diff --git a/Hasher/Pbkdf2PasswordHasher.php b/Hasher/Pbkdf2PasswordHasher.php index 0553e3d..bf17cb4 100644 --- a/Hasher/Pbkdf2PasswordHasher.php +++ b/Hasher/Pbkdf2PasswordHasher.php @@ -52,7 +52,7 @@ public function __construct(string $algorithm = 'sha512', bool $encodeHashAsBase try { $this->encodedLength = \strlen($this->hash('', 'salt')); - } catch (\LogicException $e) { + } catch (\LogicException) { // ignore unsupported algorithm }