Fix openssl requirements for existing dependencies #409
Annotations
11 warnings
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Execute Infection:
src/Bundle/Routing/JWKSetLoader.php#L23
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
{
$this->routes = new RouteCollection();
}
- public function add(string $pattern, string $name) : void
+ protected function add(string $pattern, string $name) : void
{
$defaults = ['_controller' => $name];
$route = new Route($pattern, $defaults);
|
Execute Infection:
src/Bundle/Routing/JWKSetLoader.php#L25
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
}
public function add(string $pattern, string $name) : void
{
- $defaults = ['_controller' => $name];
+ $defaults = [];
$route = new Route($pattern, $defaults);
$this->routes->add(sprintf('jwkset_%s', $name), $route);
}
|
Execute Infection:
src/Bundle/Routing/JWKSetLoader.php#L29
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
$defaults = ['_controller' => $name];
$route = new Route($pattern, $defaults);
- $this->routes->add(sprintf('jwkset_%s', $name), $route);
+
}
public function load(mixed $resource, string $type = null) : RouteCollection
{
|
Execute Infection:
src/Bundle/Routing/JWKSetLoader.php#L39
Escaped Mutant for Mutator "Identical":
--- Original
+++ New
@@ @@
}
public function supports(mixed $resource, string $type = null) : bool
{
- return $type === 'jwkset';
+ return $type !== 'jwkset';
}
public function getResolver() : LoaderResolverInterface
{
|
Execute Infection:
src/Bundle/Serializer/JWEEncoder.php#L47
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
}
public function encode(mixed $data, string $format, array $context = []) : string
{
- if ($data instanceof JWE === false) {
+ if (true === false) {
throw new LogicException('Expected data to be a JWE.');
}
try {
|
Execute Infection:
src/Bundle/Serializer/JWEEncoder.php#L53
Escaped Mutant for Mutator "MBString":
--- Original
+++ New
@@ @@
throw new LogicException('Expected data to be a JWE.');
}
try {
- return $this->serializerManager->serialize(mb_strtolower($format), $data, $this->getRecipientIndex($context));
+ return $this->serializerManager->serialize(strtolower($format), $data, $this->getRecipientIndex($context));
} catch (Throwable $ex) {
throw new NotEncodableValueException(sprintf('Cannot encode JWE to %s format.', $format), 0, $ex);
}
|
Execute Infection:
src/Bundle/Serializer/JWEEncoder.php#L58
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
try {
return $this->serializerManager->serialize(mb_strtolower($format), $data, $this->getRecipientIndex($context));
} catch (Throwable $ex) {
- throw new NotEncodableValueException(sprintf('Cannot encode JWE to %s format.', $format), 0, $ex);
+ throw new NotEncodableValueException(sprintf('Cannot encode JWE to %s format.', $format), -1, $ex);
}
}
public function decode(string $data, string $format, array $context = []) : JWE
|
Execute Infection:
src/Bundle/Serializer/JWEEncoder.php#L58
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
try {
return $this->serializerManager->serialize(mb_strtolower($format), $data, $this->getRecipientIndex($context));
} catch (Throwable $ex) {
- throw new NotEncodableValueException(sprintf('Cannot encode JWE to %s format.', $format), 0, $ex);
+ throw new NotEncodableValueException(sprintf('Cannot encode JWE to %s format.', $format), 1, $ex);
}
}
public function decode(string $data, string $format, array $context = []) : JWE
|
Execute Infection:
src/Bundle/Serializer/JWEEncoder.php#L67
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
try {
return $this->serializerManager->unserialize($data);
} catch (Exception $ex) {
- throw new NotEncodableValueException(sprintf('Cannot decode JWE from %s format.', $format), 0, $ex);
+ throw new NotEncodableValueException(sprintf('Cannot decode JWE from %s format.', $format), -1, $ex);
}
}
/**
|
Execute Infection:
src/Bundle/Serializer/JWEEncoder.php#L67
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
try {
return $this->serializerManager->unserialize($data);
} catch (Exception $ex) {
- throw new NotEncodableValueException(sprintf('Cannot decode JWE from %s format.', $format), 0, $ex);
+ throw new NotEncodableValueException(sprintf('Cannot decode JWE from %s format.', $format), 1, $ex);
}
}
/**
|
The logs for this run have expired and are no longer available.
Loading