Update PHPStan baseline for new deprecation warnings #94
Annotations
11 warnings
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Execute Infection:
src/symfony/src/DataCollector/WebauthnCollector.php#L108
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
*/
public static function getSubscribedEvents(): array
{
- return [PublicKeyCredentialCreationOptionsCreatedEvent::class => ['addPublicKeyCredentialCreationOptions'], PublicKeyCredentialRequestOptionsCreatedEvent::class => ['addPublicKeyCredentialRequestOptions'], AuthenticatorAttestationResponseValidationSucceededEvent::class => ['addAuthenticatorAttestationResponseValidationSucceeded'], AuthenticatorAttestationResponseValidationFailedEvent::class => ['addAuthenticatorAttestationResponseValidationFailed'], AuthenticatorAssertionResponseValidationSucceededEvent::class => ['addAuthenticatorAssertionResponseValidationSucceeded'], AuthenticatorAssertionResponseValidationFailedEvent::class => ['addAuthenticatorAssertionResponseValidationFailed']];
+ return [PublicKeyCredentialCreationOptionsCreatedEvent::class => ['addPublicKeyCredentialCreationOptions'], PublicKeyCredentialRequestOptionsCreatedEvent::class => ['addPublicKeyCredentialRequestOptions'], AuthenticatorAttestationResponseValidationSucceededEvent::class => ['addAuthenticatorAttestationResponseValidationSucceeded'], AuthenticatorAttestationResponseValidationFailedEvent::class => ['addAuthenticatorAttestationResponseValidationFailed'], AuthenticatorAssertionResponseValidationSucceededEvent::class => [], AuthenticatorAssertionResponseValidationFailedEvent::class => ['addAuthenticatorAssertionResponseValidationFailed']];
}
public function addPublicKeyCredentialCreationOptions(PublicKeyCredentialCreationOptionsCreatedEvent $event): void
{
|
Execute Infection:
src/stimulus/src/WebauthnStimulusBundle.php#L20
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
if (!$this->isAssetMapperAvailable($builder)) {
return;
}
- $builder->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => [__DIR__ . '/../assets/dist' => '@web-auth/webauthn-stimulus']]]);
+ $builder->prependExtensionConfig('framework', []);
}
private function isAssetMapperAvailable(ContainerBuilder $container): bool
{
|
Execute Infection:
src/symfony/src/DependencyInjection/Configuration.php#L252
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
private function addRequestProfilesConfig(ArrayNodeDefinition $rootNode): void
{
/** @noRector Rector\DeadCode\Rector\Assign\RemoveUnusedVariableAssignRector */
- $defaultRequestProfiles = ['default' => []];
+ $defaultRequestProfiles = [];
$rootNode->children()->arrayNode('request_profiles')->treatFalseLike($defaultRequestProfiles)->treatTrueLike($defaultRequestProfiles)->treatNullLike($defaultRequestProfiles)->useAttributeAsKey('name')->arrayPrototype()->addDefaultsIfNotSet()->children()->scalarNode('rp_id')->defaultNull()->end()->integerNode('challenge_length')->min(16)->defaultValue(32)->end()->integerNode('timeout')->min(0)->defaultNull()->end()->scalarNode('user_verification')->defaultValue(AuthenticatorSelectionCriteria::USER_VERIFICATION_REQUIREMENT_PREFERRED)->end()->arrayNode('extensions')->treatFalseLike([])->treatTrueLike([])->treatNullLike([])->useAttributeAsKey('name')->scalarPrototype()->end()->end()->end()->end()->end()->end();
}
private function addControllersConfig(ArrayNodeDefinition $rootNode): void
|
Execute Infection:
src/symfony/src/DependencyInjection/Configuration.php#L269
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
{
/** @noRector Rector\DeadCode\Rector\Assign\RemoveUnusedVariableAssignRector */
$defaultRequestProfiles = ['default' => []];
- $rootNode->children()->arrayNode('request_profiles')->treatFalseLike($defaultRequestProfiles)->treatTrueLike($defaultRequestProfiles)->treatNullLike($defaultRequestProfiles)->useAttributeAsKey('name')->arrayPrototype()->addDefaultsIfNotSet()->children()->scalarNode('rp_id')->defaultNull()->end()->integerNode('challenge_length')->min(16)->defaultValue(32)->end()->integerNode('timeout')->min(0)->defaultNull()->end()->scalarNode('user_verification')->defaultValue(AuthenticatorSelectionCriteria::USER_VERIFICATION_REQUIREMENT_PREFERRED)->end()->arrayNode('extensions')->treatFalseLike([])->treatTrueLike([])->treatNullLike([])->useAttributeAsKey('name')->scalarPrototype()->end()->end()->end()->end()->end()->end();
+ $rootNode->children()->arrayNode('request_profiles')->treatFalseLike($defaultRequestProfiles)->treatTrueLike($defaultRequestProfiles)->treatNullLike($defaultRequestProfiles)->useAttributeAsKey('name')->arrayPrototype()->addDefaultsIfNotSet()->children()->scalarNode('rp_id')->defaultNull()->end()->integerNode('challenge_length')->min(15)->defaultValue(32)->end()->integerNode('timeout')->min(0)->defaultNull()->end()->scalarNode('user_verification')->defaultValue(AuthenticatorSelectionCriteria::USER_VERIFICATION_REQUIREMENT_PREFERRED)->end()->arrayNode('extensions')->treatFalseLike([])->treatTrueLike([])->treatNullLike([])->useAttributeAsKey('name')->scalarPrototype()->end()->end()->end()->end()->end()->end();
}
private function addControllersConfig(ArrayNodeDefinition $rootNode): void
{
|
Execute Infection:
src/symfony/src/DependencyInjection/Configuration.php#L269
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
{
/** @noRector Rector\DeadCode\Rector\Assign\RemoveUnusedVariableAssignRector */
$defaultRequestProfiles = ['default' => []];
- $rootNode->children()->arrayNode('request_profiles')->treatFalseLike($defaultRequestProfiles)->treatTrueLike($defaultRequestProfiles)->treatNullLike($defaultRequestProfiles)->useAttributeAsKey('name')->arrayPrototype()->addDefaultsIfNotSet()->children()->scalarNode('rp_id')->defaultNull()->end()->integerNode('challenge_length')->min(16)->defaultValue(32)->end()->integerNode('timeout')->min(0)->defaultNull()->end()->scalarNode('user_verification')->defaultValue(AuthenticatorSelectionCriteria::USER_VERIFICATION_REQUIREMENT_PREFERRED)->end()->arrayNode('extensions')->treatFalseLike([])->treatTrueLike([])->treatNullLike([])->useAttributeAsKey('name')->scalarPrototype()->end()->end()->end()->end()->end()->end();
+ $rootNode->children()->arrayNode('request_profiles')->treatFalseLike($defaultRequestProfiles)->treatTrueLike($defaultRequestProfiles)->treatNullLike($defaultRequestProfiles)->useAttributeAsKey('name')->arrayPrototype()->addDefaultsIfNotSet()->children()->scalarNode('rp_id')->defaultNull()->end()->integerNode('challenge_length')->min(17)->defaultValue(32)->end()->integerNode('timeout')->min(0)->defaultNull()->end()->scalarNode('user_verification')->defaultValue(AuthenticatorSelectionCriteria::USER_VERIFICATION_REQUIREMENT_PREFERRED)->end()->arrayNode('extensions')->treatFalseLike([])->treatTrueLike([])->treatNullLike([])->useAttributeAsKey('name')->scalarPrototype()->end()->end()->end()->end()->end()->end();
}
private function addControllersConfig(ArrayNodeDefinition $rootNode): void
{
|
Execute Infection:
src/symfony/src/DependencyInjection/Configuration.php#L270
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
{
/** @noRector Rector\DeadCode\Rector\Assign\RemoveUnusedVariableAssignRector */
$defaultRequestProfiles = ['default' => []];
- $rootNode->children()->arrayNode('request_profiles')->treatFalseLike($defaultRequestProfiles)->treatTrueLike($defaultRequestProfiles)->treatNullLike($defaultRequestProfiles)->useAttributeAsKey('name')->arrayPrototype()->addDefaultsIfNotSet()->children()->scalarNode('rp_id')->defaultNull()->end()->integerNode('challenge_length')->min(16)->defaultValue(32)->end()->integerNode('timeout')->min(0)->defaultNull()->end()->scalarNode('user_verification')->defaultValue(AuthenticatorSelectionCriteria::USER_VERIFICATION_REQUIREMENT_PREFERRED)->end()->arrayNode('extensions')->treatFalseLike([])->treatTrueLike([])->treatNullLike([])->useAttributeAsKey('name')->scalarPrototype()->end()->end()->end()->end()->end()->end();
+ $rootNode->children()->arrayNode('request_profiles')->treatFalseLike($defaultRequestProfiles)->treatTrueLike($defaultRequestProfiles)->treatNullLike($defaultRequestProfiles)->useAttributeAsKey('name')->arrayPrototype()->addDefaultsIfNotSet()->children()->scalarNode('rp_id')->defaultNull()->end()->integerNode('challenge_length')->min(16)->defaultValue(31)->end()->integerNode('timeout')->min(0)->defaultNull()->end()->scalarNode('user_verification')->defaultValue(AuthenticatorSelectionCriteria::USER_VERIFICATION_REQUIREMENT_PREFERRED)->end()->arrayNode('extensions')->treatFalseLike([])->treatTrueLike([])->treatNullLike([])->useAttributeAsKey('name')->scalarPrototype()->end()->end()->end()->end()->end()->end();
}
private function addControllersConfig(ArrayNodeDefinition $rootNode): void
{
|
Execute Infection:
src/symfony/src/DependencyInjection/Configuration.php#L270
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
{
/** @noRector Rector\DeadCode\Rector\Assign\RemoveUnusedVariableAssignRector */
$defaultRequestProfiles = ['default' => []];
- $rootNode->children()->arrayNode('request_profiles')->treatFalseLike($defaultRequestProfiles)->treatTrueLike($defaultRequestProfiles)->treatNullLike($defaultRequestProfiles)->useAttributeAsKey('name')->arrayPrototype()->addDefaultsIfNotSet()->children()->scalarNode('rp_id')->defaultNull()->end()->integerNode('challenge_length')->min(16)->defaultValue(32)->end()->integerNode('timeout')->min(0)->defaultNull()->end()->scalarNode('user_verification')->defaultValue(AuthenticatorSelectionCriteria::USER_VERIFICATION_REQUIREMENT_PREFERRED)->end()->arrayNode('extensions')->treatFalseLike([])->treatTrueLike([])->treatNullLike([])->useAttributeAsKey('name')->scalarPrototype()->end()->end()->end()->end()->end()->end();
+ $rootNode->children()->arrayNode('request_profiles')->treatFalseLike($defaultRequestProfiles)->treatTrueLike($defaultRequestProfiles)->treatNullLike($defaultRequestProfiles)->useAttributeAsKey('name')->arrayPrototype()->addDefaultsIfNotSet()->children()->scalarNode('rp_id')->defaultNull()->end()->integerNode('challenge_length')->min(16)->defaultValue(33)->end()->integerNode('timeout')->min(0)->defaultNull()->end()->scalarNode('user_verification')->defaultValue(AuthenticatorSelectionCriteria::USER_VERIFICATION_REQUIREMENT_PREFERRED)->end()->arrayNode('extensions')->treatFalseLike([])->treatTrueLike([])->treatNullLike([])->useAttributeAsKey('name')->scalarPrototype()->end()->end()->end()->end()->end()->end();
}
private function addControllersConfig(ArrayNodeDefinition $rootNode): void
{
|
Execute Infection:
src/symfony/src/DependencyInjection/Configuration.php#L273
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
{
/** @noRector Rector\DeadCode\Rector\Assign\RemoveUnusedVariableAssignRector */
$defaultRequestProfiles = ['default' => []];
- $rootNode->children()->arrayNode('request_profiles')->treatFalseLike($defaultRequestProfiles)->treatTrueLike($defaultRequestProfiles)->treatNullLike($defaultRequestProfiles)->useAttributeAsKey('name')->arrayPrototype()->addDefaultsIfNotSet()->children()->scalarNode('rp_id')->defaultNull()->end()->integerNode('challenge_length')->min(16)->defaultValue(32)->end()->integerNode('timeout')->min(0)->defaultNull()->end()->scalarNode('user_verification')->defaultValue(AuthenticatorSelectionCriteria::USER_VERIFICATION_REQUIREMENT_PREFERRED)->end()->arrayNode('extensions')->treatFalseLike([])->treatTrueLike([])->treatNullLike([])->useAttributeAsKey('name')->scalarPrototype()->end()->end()->end()->end()->end()->end();
+ $rootNode->children()->arrayNode('request_profiles')->treatFalseLike($defaultRequestProfiles)->treatTrueLike($defaultRequestProfiles)->treatNullLike($defaultRequestProfiles)->useAttributeAsKey('name')->arrayPrototype()->addDefaultsIfNotSet()->children()->scalarNode('rp_id')->defaultNull()->end()->integerNode('challenge_length')->min(16)->defaultValue(32)->end()->integerNode('timeout')->min(-1)->defaultNull()->end()->scalarNode('user_verification')->defaultValue(AuthenticatorSelectionCriteria::USER_VERIFICATION_REQUIREMENT_PREFERRED)->end()->arrayNode('extensions')->treatFalseLike([])->treatTrueLike([])->treatNullLike([])->useAttributeAsKey('name')->scalarPrototype()->end()->end()->end()->end()->end()->end();
}
private function addControllersConfig(ArrayNodeDefinition $rootNode): void
{
|
Execute Infection:
src/symfony/src/DependencyInjection/Configuration.php#L273
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
{
/** @noRector Rector\DeadCode\Rector\Assign\RemoveUnusedVariableAssignRector */
$defaultRequestProfiles = ['default' => []];
- $rootNode->children()->arrayNode('request_profiles')->treatFalseLike($defaultRequestProfiles)->treatTrueLike($defaultRequestProfiles)->treatNullLike($defaultRequestProfiles)->useAttributeAsKey('name')->arrayPrototype()->addDefaultsIfNotSet()->children()->scalarNode('rp_id')->defaultNull()->end()->integerNode('challenge_length')->min(16)->defaultValue(32)->end()->integerNode('timeout')->min(0)->defaultNull()->end()->scalarNode('user_verification')->defaultValue(AuthenticatorSelectionCriteria::USER_VERIFICATION_REQUIREMENT_PREFERRED)->end()->arrayNode('extensions')->treatFalseLike([])->treatTrueLike([])->treatNullLike([])->useAttributeAsKey('name')->scalarPrototype()->end()->end()->end()->end()->end()->end();
+ $rootNode->children()->arrayNode('request_profiles')->treatFalseLike($defaultRequestProfiles)->treatTrueLike($defaultRequestProfiles)->treatNullLike($defaultRequestProfiles)->useAttributeAsKey('name')->arrayPrototype()->addDefaultsIfNotSet()->children()->scalarNode('rp_id')->defaultNull()->end()->integerNode('challenge_length')->min(16)->defaultValue(32)->end()->integerNode('timeout')->min(1)->defaultNull()->end()->scalarNode('user_verification')->defaultValue(AuthenticatorSelectionCriteria::USER_VERIFICATION_REQUIREMENT_PREFERRED)->end()->arrayNode('extensions')->treatFalseLike([])->treatTrueLike([])->treatNullLike([])->useAttributeAsKey('name')->scalarPrototype()->end()->end()->end()->end()->end()->end();
}
private function addControllersConfig(ArrayNodeDefinition $rootNode): void
{
|
Execute Infection:
src/symfony/src/DependencyInjection/Factory/Security/WebauthnFactory.php#L109
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
public function addConfiguration(NodeDefinition $builder): void
{
assert($builder instanceof ParentNodeDefinitionInterface);
- $builder->children()->scalarNode('user_provider')->defaultNull()->end()->scalarNode('options_storage')->defaultValue(self::DEFAULT_SESSION_STORAGE_SERVICE)->end()->scalarNode('success_handler')->defaultValue(self::DEFAULT_SUCCESS_HANDLER_SERVICE)->end()->scalarNode('failure_handler')->defaultValue(self::DEFAULT_FAILURE_HANDLER_SERVICE)->end()->arrayNode('secured_rp_ids')->treatFalseLike([])->treatTrueLike([])->treatNullLike([])->useAttributeAsKey('name')->scalarPrototype()->end()->end()->arrayNode('authentication')->canBeDisabled()->children()->scalarNode('profile')->defaultValue('default')->end()->scalarNode('options_builder')->defaultNull()->end()->arrayNode('routes')->addDefaultsIfNotSet()->children()->scalarNode('host')->defaultNull()->end()->scalarNode('options_method')->defaultValue(self::DEFAULT_LOGIN_OPTIONS_METHOD)->end()->scalarNode('options_path')->defaultValue(self::DEFAULT_LOGIN_OPTIONS_PATH)->end()->scalarNode('result_method')->defaultValue(self::DEFAULT_LOGIN_RESULT_METHOD)->end()->scalarNode('result_path')->defaultValue(self::DEFAULT_LOGIN_RESULT_PATH)->end()->end()->end()->scalarNode('options_handler')->defaultValue(self::DEFAULT_REQUEST_OPTIONS_HANDLER_SERVICE)->end()->end()->end()->arrayNode('registration')->canBeEnabled()->children()->scalarNode('profile')->defaultValue('default')->end()->scalarNode('options_builder')->defaultNull()->end()->arrayNode('routes')->addDefaultsIfNotSet()->children()->scalarNode('host')->defaultNull()->end()->scalarNode('options_method')->defaultValue(self::DEFAULT_REGISTER_OPTIONS_METHOD)->end()->scalarNode('options_path')->defaultValue(self::DEFAULT_REGISTER_OPTIONS_PATH)->end()->scalarNode('result_method')->defaultValue(self::DEFAULT_REGISTER_RESULT_METHOD)->end()->scalarNode('result_path')->defaultValue(self::DEFAULT_REGISTER_RESULT_PATH)->end()->end()->end()->scalarNode('options_handler')->defaultValue(self::DEFAULT_CREATION_OPTIONS_HANDLER_SERVICE)->end()->end()->end()->end();
+
}
/**
* Creates the authenticator service(s) for the provided configuration.
|
Loading