Skip to content

Commit ffe9830

Browse files
committed
Add option allowed types & info
1 parent f67f813 commit ffe9830

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/Form/Extension/PasswordHasher/Type/PasswordTypePasswordHasherExtension.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ public function configureOptions(OptionsResolver $resolver)
4747
$resolver->setDefaults([
4848
'hash_property_path' => null,
4949
]);
50+
51+
$resolver->setAllowedTypes('hash_property_path', ['null', 'string']);
52+
53+
$resolver->setInfo('hash_property_path', 'A valid PropertyAccess syntax where the hashed password will be set.');
5054
}
5155

5256
public static function getExtendedTypes(): iterable

0 commit comments

Comments
 (0)