handle null and other types in old cryptographer #337
mutation-tests-diff.yml
on: pull_request
Matrix: Mutation tests on diff
Annotations
1 error and 4 warnings
|
Mutation tests on diff (locked, 8.5, ubuntu-latest)
Process completed with exit code 1.
|
|
Mutation tests on diff (locked, 8.5, ubuntu-latest):
src/Cryptography/PersonalDataPayloadCryptographer.php#L118
Escaped Mutant for Mutator "Continue_":
@@ @@
}
if (!is_string($rawData)) {
- continue;
+ break;
}
if (!$cipherKey) {
|
|
Mutation tests on diff (locked, 8.5, ubuntu-latest):
src/Cryptography/PersonalDataPayloadCryptographer.php#L62
Escaped Mutant for Mutator "Continue_":
@@ @@
$value = $data[$propertyMetadata->fieldName()] ?? null;
if (!$this->encryptNull && $value === null) {
- continue;
+ break;
}
$targetFieldName = $this->useEncryptedFieldName
|
|
Mutation tests on diff (locked, 8.5, ubuntu-latest):
src/Cryptography/PersonalDataPayloadCryptographer.php#L61
Escaped Mutant for Mutator "LogicalAnd":
@@ @@
$value = $data[$propertyMetadata->fieldName()] ?? null;
- if (!$this->encryptNull && $value === null) {
+ if (!$this->encryptNull || $value === null) {
continue;
}
|
|
Mutation tests on diff (locked, 8.5, ubuntu-latest):
src/Cryptography/PersonalDataPayloadCryptographer.php#L30
Escaped Mutant for Mutator "TrueValue":
@@ @@
private readonly Cipher $cipher,
private readonly bool $useEncryptedFieldName = false,
private readonly bool $fallbackToFieldName = false,
- private readonly bool $encryptNull = true,
+ private readonly bool $encryptNull = false,
) {
}
|