Skip to content

handle null and other types in old cryptographer #337

handle null and other types in old cryptographer

handle null and other types in old cryptographer #337

Triggered via pull request April 6, 2026 09:12
Status Failure
Total duration 42s
Artifacts

mutation-tests-diff.yml

on: pull_request
Matrix: Mutation tests on diff
Fit to window
Zoom out
Zoom in

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, ) { }