Skip to content

Missing Optional PublicKeyCredentialParameters for creation options #646

Missing Optional PublicKeyCredentialParameters for creation options

Missing Optional PublicKeyCredentialParameters for creation options #646

Triggered via push November 12, 2023 07:41
Status Failure
Total duration 14m 0s
Artifacts

integrate.yml

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

Annotations

6 errors and 10 warnings
3️⃣ Static Analysis: src/symfony/src/DependencyInjection/WebauthnExtension.php#L143
Ignored error pattern #^Cannot access offset 'types' on mixed\.$# in path /home/runner/work/webauthn-framework/webauthn-framework/src/symfony/src/DependencyInjection/WebauthnExtension.php is expected to occur 3 times, but occurred only 2 times.
3️⃣ Static Analysis: src/symfony/src/DependencyInjection/WebauthnExtension.php#L177
Ignored error pattern #^Cannot access offset 'options_builder' on mixed\.$# in path /home/runner/work/webauthn-framework/webauthn-framework/src/symfony/src/DependencyInjection/WebauthnExtension.php is expected to occur 4 times, but occurred only 2 times.
3️⃣ Static Analysis: src/webauthn/src/AttestationStatement/AndroidSafetyNetAttestationStatementSupport.php#L1
Ignored error pattern #^Cannot access offset 'response'\|'ver' on mixed\.$# in path /home/runner/work/webauthn-framework/webauthn-framework/src/webauthn/src/AttestationStatement/AndroidSafetyNetAttestationStatementSupport.php was not matched in reported errors.
3️⃣ Static Analysis
Process completed with exit code 2.
6️⃣ Rector Checkstyle
Process completed with exit code 2.
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 "LogicalNot": --- 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 "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;