Lock file maintenance #2305
Annotations
10 warnings
|
Mutation tests (locked, 8.4, 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.4, 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.4, 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.4, 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.4, 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.4, 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.4, 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.4, 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.4, 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.4, 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');
}
}
|