Skip to content

Merge pull request #169 from patchlevel/fix-cipher-key-store #2476

Merge pull request #169 from patchlevel/fix-cipher-key-store

Merge pull request #169 from patchlevel/fix-cipher-key-store #2476

Triggered via push March 13, 2026 10:52
Status Success
Total duration 3m 21s
Artifacts
Matrix: Mutation tests
Fit to window
Zoom out
Zoom in

Annotations

11 warnings
Mutation tests (locked, 8.5, ubuntu-latest)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809, shivammathur/setup-php@2.36.0. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Mutation tests (locked, 8.5, ubuntu-latest): src/Cryptography/PersonalDataPayloadCryptographer.php#L107
Escaped Mutant for Mutator "Continue_": @@ @@ } elseif (!$this->useEncryptedFieldName || $this->fallbackToFieldName) { $rawData = $data[$propertyMetadata->fieldName()]; } else { - continue; + break; } if (!$cipherKey) {
Mutation tests (locked, 8.5, ubuntu-latest): src/Cryptography/PersonalDataPayloadCryptographer.php#L68
Escaped Mutant for Mutator "Continue_": @@ @@ ); if (!$this->useEncryptedFieldName) { - continue; + break; } unset($data[$propertyMetadata->fieldName()]);
Mutation tests (locked, 8.5, ubuntu-latest): src/Cryptography/Cipher/OpensslCipherKeyFactory.php#L61
Escaped Mutant for Mutator "PublicVisibility": @@ @@ return openssl_get_cipher_methods(true); } - public static function methodSupported(string $method): bool + protected static function methodSupported(string $method): bool { return in_array($method, self::supportedMethods(), true); }
Mutation tests (locked, 8.5, ubuntu-latest): src/Cryptography/Cipher/OpensslCipherKeyFactory.php#L56
Escaped Mutant for Mutator "PublicVisibility": @@ @@ } /** @return list<string> */ - public static function supportedMethods(): array + protected static function supportedMethods(): array { return openssl_get_cipher_methods(true); }
Mutation tests (locked, 8.5, ubuntu-latest): src/Cryptography/Cipher/OpensslCipherKeyFactory.php#L32
Escaped Mutant for Mutator "IfNegation": @@ @@ $keyLength = 16; - if (function_exists('openssl_cipher_key_length')) { + if (!function_exists('openssl_cipher_key_length')) { $keyLength = @openssl_cipher_key_length($this->method); }
Mutation tests (locked, 8.5, ubuntu-latest): src/Cryptography/Cipher/OpensslCipherKeyFactory.php#L30
Escaped Mutant for Mutator "IncrementInteger": @@ @@ throw new MethodNotSupported($this->method); } - $keyLength = 16; + $keyLength = 17; if (function_exists('openssl_cipher_key_length')) { $keyLength = @openssl_cipher_key_length($this->method);
Mutation tests (locked, 8.5, ubuntu-latest): src/Cryptography/Cipher/OpensslCipherKeyFactory.php#L27
Escaped Mutant for Mutator "Throw_": @@ @@ private readonly string $method = self::DEFAULT_METHOD, ) { if (!self::methodSupported($this->method)) { - throw new MethodNotSupported($this->method); + new MethodNotSupported($this->method); } $keyLength = 16;
Mutation tests (locked, 8.5, ubuntu-latest): src/Cryptography/Cipher/OpensslCipher.php#L65
Escaped Mutant for Mutator "IncrementInteger": @@ @@ private function dataDecode(string $data): mixed { - return json_decode($data, true, 512, JSON_THROW_ON_ERROR); + return json_decode($data, true, 513, JSON_THROW_ON_ERROR); } }
Mutation tests (locked, 8.5, ubuntu-latest): src/Cryptography/Cipher/OpensslCipher.php#L65
Escaped Mutant for Mutator "DecrementInteger": @@ @@ private function dataDecode(string $data): mixed { - return json_decode($data, true, 512, JSON_THROW_ON_ERROR); + return json_decode($data, true, 511, JSON_THROW_ON_ERROR); } }
Mutation tests (locked, 8.5, ubuntu-latest): src/Attribute/PersonalData.php#L22
Escaped Mutant for Mutator "NotIdentical": @@ @@ ) { $this->fallbackCallable = $fallbackCallable; - if ($this->fallbackCallable !== null && $this->fallback !== null) { + if ($this->fallbackCallable !== null && $this->fallback === null) { throw new InvalidArgumentException('You can only set one of fallback or fallbackCallable'); } }