Skip to content

Symfony 7 support

Symfony 7 support #706

Triggered via pull request December 8, 2023 12:54
Status Failure
Total duration 8m 25s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

integrate.yml

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

Annotations

1 error and 10 warnings
5️⃣ Mutation Testing
Process completed with exit code 2.
5️⃣ Mutation Testing: src/metadata-service/src/CertificateChain/CertificateToolbox.php#L30
Escaped Mutant for Mutator "UnwrapTrim": --- Original +++ New @@ @@ public static function fixPEMStructure(string $data, string $type = 'CERTIFICATE') : string { if (str_contains($data, self::PEM_HEADER)) { - return trim($data); + return $data; } $pem = self::PEM_HEADER . $type . '-----' . PHP_EOL; $pem .= chunk_split($data, 64, PHP_EOL);
5️⃣ Mutation Testing: src/metadata-service/src/CertificateChain/CertificateToolbox.php#L52
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ $data = preg_replace("/[\r\n]*/", '', $data); return Base64::decode(trim($data), true); } - public static function convertDERToPEM(string $data, string $type = 'CERTIFICATE') : string + protected static function convertDERToPEM(string $data, string $type = 'CERTIFICATE') : string { if (str_contains($data, self::PEM_HEADER)) { return $data;
5️⃣ Mutation Testing: src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php#L47
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ private const MAX_VALIDATION_LENGTH = 5; private readonly Clock|ClockInterface $clock; private EventDispatcherInterface $dispatcher; - public function __construct(private readonly ClientInterface|HttpClientInterface $client, private readonly ?RequestFactoryInterface $requestFactory = null, null|Clock|ClockInterface $clock = null, private readonly bool $allowFailures = true) + public function __construct(private readonly ClientInterface|HttpClientInterface $client, private readonly ?RequestFactoryInterface $requestFactory = null, null|Clock|ClockInterface $clock = null, private readonly bool $allowFailures = false) { if ($clock === null) { trigger_deprecation('web-auth/metadata-service', '4.5.0', 'The parameter "$clock" will become mandatory in 5.0.0. Please set a valid PSR Clock implementation instead of "null".');
5️⃣ Mutation Testing: src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php#L49
Escaped Mutant for Mutator "Identical": --- Original +++ New @@ @@ private EventDispatcherInterface $dispatcher; public function __construct(private readonly ClientInterface|HttpClientInterface $client, private readonly ?RequestFactoryInterface $requestFactory = null, null|Clock|ClockInterface $clock = null, private readonly bool $allowFailures = true) { - if ($clock === null) { + if ($clock !== null) { trigger_deprecation('web-auth/metadata-service', '4.5.0', 'The parameter "$clock" will become mandatory in 5.0.0. Please set a valid PSR Clock implementation instead of "null".'); $clock = new SystemClock(new DateTimeZone('UTC')); }
5️⃣ Mutation Testing: src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php#L57
Escaped Mutant for Mutator "NotIdentical": --- Original +++ New @@ @@ trigger_deprecation('web-auth/metadata-service', '4.5.0', 'The parameter "$clock" will become mandatory in 5.0.0. Please set a valid PSR Clock implementation instead of "null".'); $clock = new SystemClock(new DateTimeZone('UTC')); } - if ($requestFactory !== null && !$client instanceof HttpClientInterface) { + if ($requestFactory === null && !$client instanceof HttpClientInterface) { trigger_deprecation('web-auth/metadata-service', '4.7.0', 'The parameter "$requestFactory" will be removed in 5.0.0. Please set it to null and set an Symfony\\Contracts\\HttpClient\\HttpClientInterface as "$client" argument.'); } $this->clock = $clock;
5️⃣ Mutation Testing: src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php#L57
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ trigger_deprecation('web-auth/metadata-service', '4.5.0', 'The parameter "$clock" will become mandatory in 5.0.0. Please set a valid PSR Clock implementation instead of "null".'); $clock = new SystemClock(new DateTimeZone('UTC')); } - if ($requestFactory !== null && !$client instanceof HttpClientInterface) { + if ($requestFactory !== null && !true) { trigger_deprecation('web-auth/metadata-service', '4.7.0', 'The parameter "$requestFactory" will be removed in 5.0.0. Please set it to null and set an Symfony\\Contracts\\HttpClient\\HttpClientInterface as "$client" argument.'); } $this->clock = $clock;
5️⃣ Mutation Testing: src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php#L57
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ trigger_deprecation('web-auth/metadata-service', '4.5.0', 'The parameter "$clock" will become mandatory in 5.0.0. Please set a valid PSR Clock implementation instead of "null".'); $clock = new SystemClock(new DateTimeZone('UTC')); } - if ($requestFactory !== null && !$client instanceof HttpClientInterface) { + if ($requestFactory !== null && !false) { trigger_deprecation('web-auth/metadata-service', '4.7.0', 'The parameter "$requestFactory" will be removed in 5.0.0. Please set it to null and set an Symfony\\Contracts\\HttpClient\\HttpClientInterface as "$client" argument.'); } $this->clock = $clock;
5️⃣ Mutation Testing: src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php#L57
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ trigger_deprecation('web-auth/metadata-service', '4.5.0', 'The parameter "$clock" will become mandatory in 5.0.0. Please set a valid PSR Clock implementation instead of "null".'); $clock = new SystemClock(new DateTimeZone('UTC')); } - if ($requestFactory !== null && !$client instanceof HttpClientInterface) { + if ($requestFactory !== null || !$client instanceof HttpClientInterface) { trigger_deprecation('web-auth/metadata-service', '4.7.0', 'The parameter "$requestFactory" will be removed in 5.0.0. Please set it to null and set an Symfony\\Contracts\\HttpClient\\HttpClientInterface as "$client" argument.'); } $this->clock = $clock;
5️⃣ Mutation Testing: src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php#L57
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation": --- Original +++ New @@ @@ trigger_deprecation('web-auth/metadata-service', '4.5.0', 'The parameter "$clock" will become mandatory in 5.0.0. Please set a valid PSR Clock implementation instead of "null".'); $clock = new SystemClock(new DateTimeZone('UTC')); } - if ($requestFactory !== null && !$client instanceof HttpClientInterface) { + if (!($requestFactory !== null) && $client instanceof HttpClientInterface) { trigger_deprecation('web-auth/metadata-service', '4.7.0', 'The parameter "$requestFactory" will be removed in 5.0.0. Please set it to null and set an Symfony\\Contracts\\HttpClient\\HttpClientInterface as "$client" argument.'); } $this->clock = $clock;
5️⃣ Mutation Testing: src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php#L57
Escaped Mutant for Mutator "LogicalAndNegation": --- Original +++ New @@ @@ trigger_deprecation('web-auth/metadata-service', '4.5.0', 'The parameter "$clock" will become mandatory in 5.0.0. Please set a valid PSR Clock implementation instead of "null".'); $clock = new SystemClock(new DateTimeZone('UTC')); } - if ($requestFactory !== null && !$client instanceof HttpClientInterface) { + if (!($requestFactory !== null && !$client instanceof HttpClientInterface)) { trigger_deprecation('web-auth/metadata-service', '4.7.0', 'The parameter "$requestFactory" will be removed in 5.0.0. Please set it to null and set an Symfony\\Contracts\\HttpClient\\HttpClientInterface as "$client" argument.'); } $this->clock = $clock;