Password hashers - redact passwords #515
ci.yaml
on: push
Matrix: Tests
Matrix: Coding standard
Matrix: Static analysis
Matrix: Test for mutants
Matrix: Code coverage finish
Status check - CI
3s
Annotations
2 warnings
Test for mutants (ubuntu-latest, 8.1):
src/Passwords/Argon2PasswordHasher.php#L53
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
public function hash(#[SensitiveParameter] string $raw) : string
{
$hash = password_hash($raw, PASSWORD_ARGON2ID, $this->getOptions());
- assert($hash !== false);
+ assert($hash !== true);
// Since php 7.4 password_hash cannot return false
assert($hash !== null);
// All failing conditions are handled
|
Test for mutants (ubuntu-latest, 8.1):
src/Passwords/BcryptPasswordHasher.php#L34
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
public function hash(#[SensitiveParameter] string $raw) : string
{
$hash = password_hash($raw, PASSWORD_BCRYPT, $this->getOptions());
- assert($hash !== false);
+ assert($hash !== true);
// Since php 7.4 password_hash cannot return false
assert($hash !== null);
// All failing conditions are handled
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
Logs - Mutations
Expired
|
1.09 KB |
|