Skip to content

Fix typo in docblock annotation for @deprecated property (#696) #104

Fix typo in docblock annotation for @deprecated property (#696)

Fix typo in docblock annotation for @deprecated property (#696) #104

Triggered via push February 16, 2025 10:15
Status Success
Total duration 5m 12s
Artifacts

infection.yml

on: push
5️⃣ Mutation Testing
5m 4s
5️⃣ Mutation Testing
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
5️⃣ Mutation Testing: src/stimulus/src/WebauthnStimulusBundle.php#L16
Escaped Mutant for Mutator "LogicalNot": @@ @@ { public function prependExtension(ContainerConfigurator $container, ContainerBuilder $builder): void { - if (!$this->isAssetMapperAvailable($builder)) { + if ($this->isAssetMapperAvailable($builder)) { return; } $builder->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => [__DIR__ . '/../assets/dist' => '@web-auth/webauthn-stimulus']]]);
5️⃣ Mutation Testing: src/stimulus/src/WebauthnStimulusBundle.php#L20
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ if (!$this->isAssetMapperAvailable($builder)) { return; } - $builder->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => [__DIR__ . '/../assets/dist' => '@web-auth/webauthn-stimulus']]]); + } private function isAssetMapperAvailable(ContainerBuilder $container): bool {
5️⃣ Mutation Testing: src/symfony/src/CredentialOptionsBuilder/ProfileBasedCreationOptionsBuilder.php#L43
Escaped Mutant for Mutator "Throw_": @@ @@ public function getFromRequest(Request $request, PublicKeyCredentialUserEntity $userEntity, bool $hideExistingExcludedCredentials = false): PublicKeyCredentialCreationOptions { $format = $request->getContentTypeFormat(); - $format === 'json' || throw new BadRequestHttpException('Only JSON content type allowed'); + $format === 'json' || new BadRequestHttpException('Only JSON content type allowed'); $content = $request->getContent(); $excludedCredentials = $hideExistingExcludedCredentials === true ? [] : $this->getCredentials($userEntity); $optionsRequest = $this->getServerPublicKeyCredentialCreationOptionsRequest($content);
5️⃣ Mutation Testing: src/symfony/src/CredentialOptionsBuilder/ProfileBasedCreationOptionsBuilder.php#L43
Escaped Mutant for Mutator "LogicalOrNegation": @@ @@ public function getFromRequest(Request $request, PublicKeyCredentialUserEntity $userEntity, bool $hideExistingExcludedCredentials = false): PublicKeyCredentialCreationOptions { $format = $request->getContentTypeFormat(); - $format === 'json' || throw new BadRequestHttpException('Only JSON content type allowed'); + !($format === 'json' || throw new BadRequestHttpException('Only JSON content type allowed')); $content = $request->getContent(); $excludedCredentials = $hideExistingExcludedCredentials === true ? [] : $this->getCredentials($userEntity); $optionsRequest = $this->getServerPublicKeyCredentialCreationOptionsRequest($content);
5️⃣ Mutation Testing: src/symfony/src/CredentialOptionsBuilder/ProfileBasedCreationOptionsBuilder.php#L57
Escaped Mutant for Mutator "UnwrapArrayMap": @@ @@ $authenticatorSelection = AuthenticatorSelectionCriteria::create($optionsRequest->authenticatorAttachment, $optionsRequest->userVerification ?? AuthenticatorSelectionCriteria::USER_VERIFICATION_REQUIREMENT_PREFERRED, $residentKey); $extensions = null; if (is_array($optionsRequest->extensions)) { - $extensions = AuthenticationExtensions::create(array_map(static fn(string $name, mixed $data): AuthenticationExtension => AuthenticationExtension::create($name, $data), array_keys($optionsRequest->extensions), $optionsRequest->extensions)); + $extensions = AuthenticationExtensions::create($optionsRequest->extensions); } return $this->publicKeyCredentialCreationOptionsFactory->create($this->profile, $userEntity, $excludedCredentials, $authenticatorSelection, $optionsRequest->attestation, $extensions); }
5️⃣ Mutation Testing: src/symfony/src/CredentialOptionsBuilder/ProfileBasedRequestOptionsBuilder.php#L45
Escaped Mutant for Mutator "LogicalOrNegation": @@ @@ public function getFromRequest(Request $request, ?PublicKeyCredentialUserEntity &$userEntity = null): PublicKeyCredentialRequestOptions { $format = $request->getContentTypeFormat(); - $format === 'json' || throw new BadRequestHttpException('Only JSON content type allowed'); + !($format === 'json' || throw new BadRequestHttpException('Only JSON content type allowed')); $content = $request->getContent(); $optionsRequest = $this->getServerPublicKeyCredentialRequestOptionsRequest($content); $extensions = null;
5️⃣ Mutation Testing: src/symfony/src/CredentialOptionsBuilder/ProfileBasedRequestOptionsBuilder.php#L63
Escaped Mutant for Mutator "MatchArmRemoval": @@ @@ } $userEntity = $optionsRequest->username === null ? null : $this->userEntityRepository->findOneByUsername($optionsRequest->username); $allowedCredentials = match (true) { - $userEntity === null && $optionsRequest->username === null, $userEntity === null && $optionsRequest->username !== null && $this->fakeCredentialGenerator === null => [], + $userEntity === null && $optionsRequest->username === null => [], $userEntity === null && $optionsRequest->username !== null && $this->fakeCredentialGenerator !== null => $this->fakeCredentialGenerator->generate($request, $optionsRequest->username), default => $this->getCredentials($userEntity), };
5️⃣ Mutation Testing: src/symfony/src/CredentialOptionsBuilder/ProfileBasedRequestOptionsBuilder.php#L63
Escaped Mutant for Mutator "MatchArmRemoval": @@ @@ $userEntity = $optionsRequest->username === null ? null : $this->userEntityRepository->findOneByUsername($optionsRequest->username); $allowedCredentials = match (true) { $userEntity === null && $optionsRequest->username === null, $userEntity === null && $optionsRequest->username !== null && $this->fakeCredentialGenerator === null => [], - $userEntity === null && $optionsRequest->username !== null && $this->fakeCredentialGenerator !== null => $this->fakeCredentialGenerator->generate($request, $optionsRequest->username), default => $this->getCredentials($userEntity), }; return $this->publicKeyCredentialRequestOptionsFactory->create($this->profile, $allowedCredentials, $optionsRequest->userVerification, $extensions);
5️⃣ Mutation Testing: src/symfony/src/CredentialOptionsBuilder/ProfileBasedRequestOptionsBuilder.php#L64
Escaped Mutant for Mutator "LogicalAnd": @@ @@ } $userEntity = $optionsRequest->username === null ? null : $this->userEntityRepository->findOneByUsername($optionsRequest->username); $allowedCredentials = match (true) { - $userEntity === null && $optionsRequest->username === null, $userEntity === null && $optionsRequest->username !== null && $this->fakeCredentialGenerator === null => [], + $userEntity === null || $optionsRequest->username === null, $userEntity === null && $optionsRequest->username !== null && $this->fakeCredentialGenerator === null => [], $userEntity === null && $optionsRequest->username !== null && $this->fakeCredentialGenerator !== null => $this->fakeCredentialGenerator->generate($request, $optionsRequest->username), default => $this->getCredentials($userEntity), };
5️⃣ Mutation Testing: src/symfony/src/CredentialOptionsBuilder/ProfileBasedRequestOptionsBuilder.php#L64
Escaped Mutant for Mutator "Identical": @@ @@ } $userEntity = $optionsRequest->username === null ? null : $this->userEntityRepository->findOneByUsername($optionsRequest->username); $allowedCredentials = match (true) { - $userEntity === null && $optionsRequest->username === null, $userEntity === null && $optionsRequest->username !== null && $this->fakeCredentialGenerator === null => [], + $userEntity === null && $optionsRequest->username === null, $userEntity !== null && $optionsRequest->username !== null && $this->fakeCredentialGenerator === null => [], $userEntity === null && $optionsRequest->username !== null && $this->fakeCredentialGenerator !== null => $this->fakeCredentialGenerator->generate($request, $optionsRequest->username), default => $this->getCredentials($userEntity), };