Skip to content

Commit e7520cd

Browse files
committed
Leverage non-capturing catches
1 parent 852e552 commit e7520cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Hasher/MessageDigestPasswordHasher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct(string $algorithm = 'sha512', bool $encodeHashAsBase
4141

4242
try {
4343
$this->hashLength = \strlen($this->hash('', 'salt'));
44-
} catch (\LogicException $e) {
44+
} catch (\LogicException) {
4545
// ignore algorithm not supported
4646
}
4747

Hasher/Pbkdf2PasswordHasher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function __construct(string $algorithm = 'sha512', bool $encodeHashAsBase
5252

5353
try {
5454
$this->encodedLength = \strlen($this->hash('', 'salt'));
55-
} catch (\LogicException $e) {
55+
} catch (\LogicException) {
5656
// ignore unsupported algorithm
5757
}
5858

0 commit comments

Comments
 (0)