Symfony 7 support #705
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
integrate.yml
on: pull_request
3️⃣ Static Analysis
34s
4️⃣ Coding Standards
49s
5️⃣ Mutation Testing
8m 28s
6️⃣ Rector Checkstyle
43s
7️⃣ Exported files
2s
Matrix: 2️⃣ JS tests
Matrix: 2️⃣ Unit and functional tests
Annotations
7 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/symfony/src/Security/Http/Authenticator/WebauthnAuthenticator.php#L53
Method Webauthn\Bundle\Security\Http\Authenticator\WebauthnAuthenticator::__construct() has parameter $userProvider with generic interface Symfony\Component\Security\Core\User\UserProviderInterface but does not specify its types: TUser
|
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.
|
4️⃣ Coding Standards
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 "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;
|
5️⃣ Mutation Testing:
src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php#L88
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function check(array $untrustedCertificates, array $trustedCertificates) : void
{
foreach ($trustedCertificates as $trustedCertificate) {
- $this->dispatcher->dispatch(BeforeCertificateChainValidation::create($untrustedCertificates, $trustedCertificate));
+
try {
if ($this->validateChain($untrustedCertificates, $trustedCertificate)) {
$this->dispatcher->dispatch(CertificateChainValidationSucceeded::create($untrustedCertificates, $trustedCertificate));
|
5️⃣ Mutation Testing:
src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php#L93
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$this->dispatcher->dispatch(BeforeCertificateChainValidation::create($untrustedCertificates, $trustedCertificate));
try {
if ($this->validateChain($untrustedCertificates, $trustedCertificate)) {
- $this->dispatcher->dispatch(CertificateChainValidationSucceeded::create($untrustedCertificates, $trustedCertificate));
+
return;
}
} catch (Throwable $exception) {
|