Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .ci-tools/phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,12 @@ parameters:
count: 2
path: ../src/symfony/src/DependencyInjection/Factory/Security/WebauthnFactory.php

-
rawMessage: Cannot access offset 'hide_existing_credentials' on mixed.
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: ../src/symfony/src/DependencyInjection/Factory/Security/WebauthnFactory.php

-
rawMessage: Cannot access offset 'host' on mixed.
identifier: offsetAccess.nonOffsetAccessible
Expand Down Expand Up @@ -711,6 +717,12 @@ parameters:
count: 1
path: ../src/symfony/src/DependencyInjection/Factory/Security/WebauthnFactory.php

-
rawMessage: 'Parameter #10 $hideExistingCredentials of method Webauthn\Bundle\DependencyInjection\Factory\Security\WebauthnFactory::createAttestationRequestControllerAndRoute() expects bool, mixed given.'
identifier: argument.type
count: 1
path: ../src/symfony/src/DependencyInjection/Factory/Security/WebauthnFactory.php

-
rawMessage: 'Parameter #3 $config of method Webauthn\Bundle\DependencyInjection\Factory\Security\WebauthnFactory::getAssertionOptionsBuilderId() expects array<mixed>, mixed given.'
identifier: argument.type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ public function addConfiguration(NodeDefinition $builder): void
->arrayNode('registration')
->canBeEnabled()
->children()
->booleanNode('hide_existing_credentials')
->defaultTrue()
->end()
->scalarNode('profile')
->defaultValue('default')
->end()
Expand Down Expand Up @@ -347,6 +350,7 @@ private function createAttestationControllersAndRoutes(
$config['options_storage'],
$config['registration']['options_handler'],
$config['failure_handler'],
$config['registration']['hide_existing_credentials'],
);
if ($config['registration']['routes']['result_path'] !== null) {
$this->createResponseControllerAndRoute(
Expand Down Expand Up @@ -401,6 +405,7 @@ private function createAttestationRequestControllerAndRoute(
null|string $optionsStorageId,
string $optionsHandlerId,
string $failureHandlerId,
bool $hideExistingCredentials,
): void {
$controller = (new Definition(AttestationRequestController::class))
->setFactory([new Reference(AttestationControllerFactory::class), 'createRequestController'])
Expand All @@ -410,7 +415,7 @@ private function createAttestationRequestControllerAndRoute(
new Reference($optionsStorageId ?? OptionsStorage::class),
new Reference($optionsHandlerId),
new Reference($failureHandlerId),
true,
$hideExistingCredentials,
]);
$this->createControllerAndRoute(
$container,
Expand Down
Loading