Skip to content

Commit 43747c5

Browse files
Girgiasnicolas-grekas
authored andcommitted
Remove some implicit bool type juggling
1 parent 9d30cf3 commit 43747c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Hasher/SodiumPasswordHasher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function __construct(?int $opsLimit = null, ?int $memLimit = null)
4949

5050
public static function isSupported(): bool
5151
{
52-
return version_compare(\extension_loaded('sodium') ? \SODIUM_LIBRARY_VERSION : phpversion('libsodium'), '1.0.14', '>=');
52+
return version_compare(\extension_loaded('sodium') ? \SODIUM_LIBRARY_VERSION : (phpversion('libsodium') ?: ''), '1.0.14', '>=');
5353
}
5454

5555
public function hash(#[\SensitiveParameter] string $plainPassword): string

0 commit comments

Comments
 (0)