Skip to content

Update symfony/phpunit-bridge requirement from ^6.1.3 to ^6.1.3 || ^7.0.0 #350

Update symfony/phpunit-bridge requirement from ^6.1.3 to ^6.1.3 || ^7.0.0

Update symfony/phpunit-bridge requirement from ^6.1.3 to ^6.1.3 || ^7.0.0 #350

Triggered via pull request December 1, 2023 02:34
Status Failure
Total duration 6m 8s
Artifacts

integrate.yml

on: pull_request
0️⃣ Byte-level
3s
0️⃣ Byte-level
1️⃣ Syntax errors
19s
1️⃣ Syntax errors
3️⃣ Static Analysis
39s
3️⃣ Static Analysis
4️⃣ Coding Standards
1m 4s
4️⃣ Coding Standards
5️⃣ Mutation Testing
5m 33s
5️⃣ Mutation Testing
6️⃣ Rector Checkstyle
1m 3s
6️⃣ Rector Checkstyle
7️⃣ Exported files
3s
7️⃣ Exported files
Matrix: 2️⃣ Unit and functional tests
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 10 warnings
3️⃣ Static Analysis: src/Bundle/JoseFramework/Serializer/JWESerializer.php#L29
Method Jose\Bundle\JoseFramework\Serializer\JWESerializer::getSupportedTypes() return type has no value type specified in iterable type array.
3️⃣ Static Analysis: src/Bundle/JoseFramework/Serializer/JWSSerializer.php#L29
Method Jose\Bundle\JoseFramework\Serializer\JWSSerializer::getSupportedTypes() return type has no value type specified in iterable type array.
3️⃣ Static Analysis: src/Component/Core/Util/RSAKey.php#L1
Ignored error pattern #^Access to an uninitialized property Jose\\Component\\Core\\Util\\RSAKey\:\:\$modulus\.$# in path /home/runner/work/jwt-framework/jwt-framework/src/Component/Core/Util/RSAKey.php was not matched in reported errors.
3️⃣ Static Analysis: src/Component/Signature/Serializer/JSONGeneralSerializer.php#L79
Ignored error pattern #^Cannot access offset 'signature' on mixed\.$# in path /home/runner/work/jwt-framework/jwt-framework/src/Component/Signature/Serializer/JSONGeneralSerializer.php is expected to occur 2 times, but occurred only 1 time.
3️⃣ Static Analysis
Process completed with exit code 2.
6️⃣ Rector Checkstyle
Process completed with exit code 2.
5️⃣ Mutation Testing: src/Bundle/JoseFramework/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);
5️⃣ Mutation Testing: src/Bundle/JoseFramework/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); }
5️⃣ Mutation Testing: src/Bundle/JoseFramework/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); + } /** * {@inheritdoc}
5️⃣ Mutation Testing: src/Bundle/JoseFramework/Routing/JWKSetLoader.php#L45
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 {
5️⃣ Mutation Testing: src/Bundle/JoseFramework/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 {
5️⃣ Mutation Testing: src/Bundle/JoseFramework/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); }
5️⃣ Mutation Testing: src/Bundle/JoseFramework/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
5️⃣ Mutation Testing: src/Bundle/JoseFramework/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
5️⃣ Mutation Testing: src/Bundle/JoseFramework/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); } } /**
5️⃣ Mutation Testing: src/Bundle/JoseFramework/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); } } /**