diff --git a/lib/Data/Mapper/UserCreateMapper.php b/lib/Data/Mapper/UserCreateMapper.php index dbcf0a03a..258cf5e6c 100644 --- a/lib/Data/Mapper/UserCreateMapper.php +++ b/lib/Data/Mapper/UserCreateMapper.php @@ -27,11 +27,7 @@ class UserCreateMapper { /** - * @param ContentType $contentType * @param UserGroup[] $parentGroups - * @param array $params - * - * @return UserCreateData * * @throws UndefinedOptionsException * @throws OptionDefinitionException @@ -64,8 +60,6 @@ public function mapToFormData(ContentType $contentType, array $parentGroups, arr } /** - * @param OptionsResolver $optionsResolver - * * @throws AccessException */ private function configureOptions(OptionsResolver $optionsResolver): void diff --git a/lib/Form/EventSubscriber/UserFieldsSubscriber.php b/lib/Form/EventSubscriber/UserFieldsSubscriber.php index c3ce3e8b1..7c95f3f2e 100644 --- a/lib/Form/EventSubscriber/UserFieldsSubscriber.php +++ b/lib/Form/EventSubscriber/UserFieldsSubscriber.php @@ -62,7 +62,7 @@ private function handleUserCreateData(UserCreateData $data) $data->login = $userAccountFieldData->username; $data->email = $userAccountFieldData->email; $data->password = $userAccountFieldData->password; - $data->enabled = $data->enabled ?? $userAccountFieldData->enabled; + $data->enabled = $userAccountFieldData->enabled ?? $data->enabled; /** @var Value $userValue */ $userValue = clone $data->contentType